Skip to content

Commit 468f381

Browse files
committed
publish separate and then join with one manifest
1 parent f8dfd2c commit 468f381

1 file changed

Lines changed: 23 additions & 2 deletions

File tree

.github/workflows/cd.yml

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,28 @@ jobs:
3838
username: ${{ github.actor }}
3939
password: ${{ secrets.GITHUB_TOKEN }}
4040
- name: Build docker image
41-
run: basalt build -t ${{ env.TAG }} ./basalt.toml
41+
run: basalt build -t ${{ env.TAG }}-${{ matrix.arch }} ./basalt.toml
4242
working-directory: all-the-langs
4343
- name: Push image to GHCR
44-
run: docker push ${{ env.TAG }}
44+
run: docker push ${{ env.TAG }}-${{ matrix.arch }}
45+
46+
all-the-langs-manifest:
47+
needs: all-the-langs
48+
runs-on: ubuntu-24.04
49+
permissions:
50+
contents: read
51+
packages: write
52+
steps:
53+
- name: Log in to GHCR
54+
uses: docker/login-action@v3
55+
with:
56+
registry: ghcr.io
57+
username: ${{ github.actor }}
58+
password: ${{ secrets.GITHUB_TOKEN }}
59+
60+
- name: Create and push multi-arch manifest for main
61+
run: |
62+
docker buildx imagetools create \
63+
-t ghcr.io/${{ github.repository }}/all-the-langs:main \
64+
ghcr.io/${{ github.repository }}/all-the-langs:main-amd64 \
65+
ghcr.io/${{ github.repository }}/all-the-langs:main-arm64

0 commit comments

Comments
 (0)