Skip to content

Commit 76c670b

Browse files
authored
feat(multi-arch): combine architecture specific images into a multi-arch manifest (#7)
1 parent 85f44ef commit 76c670b

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/release.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,3 +84,21 @@ jobs:
8484
with:
8585
tag_name: ${{ needs.release.outputs.release-git-tag }}
8686
files: ${{ matrix.architecture }}-${{ matrix.ostype }}.tar.gz
87+
88+
multi-arch:
89+
needs: [release, artifacts]
90+
name: Create Release Artifacts
91+
if: ${{ needs.release.outputs.published == 'true' }}
92+
strategy:
93+
matrix:
94+
ostype: [linux-gnu, linux-musl]
95+
runs-on: ubuntu-latest
96+
steps:
97+
- name: Combine per architecture images into a single multi-arch manifest
98+
run: |
99+
docker pull ghcr.io/kong/template-github-release:${{ needs.release.outputs.release-git-tag }}-aarch64-${{ matrix.ostype }}
100+
docker pull ghcr.io/kong/template-github-release:${{ needs.release.outputs.release-git-tag }}-x86_64-${{ matrix.ostype }}
101+
docker manifest ghcr.io/kong/template-github-release:${{ needs.release.outputs.release-git-tag }}-${{ matrix.ostype }} \
102+
ghcr.io/kong/template-github-release:${{ needs.release.outputs.release-git-tag }}-aarch64-${{ matrix.ostype }} \
103+
ghcr.io/kong/template-github-release:${{ needs.release.outputs.release-git-tag }}-x86_64-${{ matrix.ostype }}
104+
ghcr.io/kong/template-github-release:${{ needs.release.outputs.release-git-tag }}-${{ matrix.ostype }}

0 commit comments

Comments
 (0)