Skip to content

Commit 843a6ad

Browse files
committed
Add QEMU support and simplify image tagging in release workflow
1 parent 120a23f commit 843a6ad

1 file changed

Lines changed: 6 additions & 11 deletions

File tree

.github/workflows/release-image.yml

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,25 +26,20 @@ jobs:
2626
username: ${{ github.actor }}
2727
password: ${{ secrets.GITHUB_TOKEN }}
2828

29+
- name: Set up QEMU
30+
uses: docker/setup-qemu-action@v3
31+
2932
- name: Set up Docker Buildx
3033
uses: docker/setup-buildx-action@v3
3134

32-
- name: Extract metadata
33-
id: meta
34-
uses: docker/metadata-action@v5
35-
with:
36-
images: ghcr.io/${{ github.repository_owner }}/devcontainer
37-
tags: |
38-
type=raw,value=latest
39-
type=sha,prefix=
40-
4135
- name: Build and push
4236
uses: docker/build-push-action@v6
4337
with:
4438
context: ./image
4539
platforms: linux/amd64,linux/arm64
4640
push: true
47-
tags: ${{ steps.meta.outputs.tags }}
48-
labels: ${{ steps.meta.outputs.labels }}
41+
tags: |
42+
ghcr.io/${{ github.repository_owner }}/devcontainer:latest
43+
ghcr.io/${{ github.repository_owner }}/devcontainer:${{ github.sha }}
4944
cache-from: type=gha
5045
cache-to: type=gha,mode=max

0 commit comments

Comments
 (0)