Skip to content

Commit faba90e

Browse files
committed
Attempt separate build for ARM64. Support for OSX.
1 parent 95cc12a commit faba90e

File tree

1 file changed

+36
-1
lines changed

1 file changed

+36
-1
lines changed

.github/workflows/build-devbox.yaml

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ env:
1111
IMAGE_NAME: ${{ github.repository }}
1212

1313
jobs:
14-
docker:
14+
docker-amd64:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- name: Checkout
@@ -46,3 +46,38 @@ jobs:
4646
push: true
4747
tags: ${{ steps.meta.outputs.tags }}
4848
labels: ${{ steps.meta.outputs.labels }}
49+
docker-arm64:
50+
runs-on: ubuntu-latest
51+
steps:
52+
- name: Checkout
53+
uses: actions/checkout@v4
54+
with:
55+
submodules: recursive
56+
- name: Set up QEMU
57+
uses: docker/setup-qemu-action@v3
58+
- name: Extract version and branch metadata
59+
id: meta
60+
uses: docker/metadata-action@v5
61+
with:
62+
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
63+
tags: |
64+
type=ref,event=tag
65+
type=raw,value=devcontainer
66+
type=sha
67+
- name: Set up Docker Buildx
68+
uses: docker/setup-buildx-action@v3
69+
- name: Login to GHCR
70+
uses: docker/login-action@v3
71+
with:
72+
registry: ${{ env.REGISTRY }}
73+
username: ${{ github.repository_owner }}
74+
password: ${{ secrets.GITHUB_TOKEN }}
75+
- name: Build and push
76+
uses: docker/build-push-action@v5
77+
with:
78+
context: .
79+
file: ./.devcontainer/Dockerfile
80+
platforms: linux/arm64
81+
push: true
82+
tags: ${{ steps.meta.outputs.tags }}
83+
labels: ${{ steps.meta.outputs.labels }}

0 commit comments

Comments
 (0)