Skip to content

Commit

Permalink
feat(multi-arch): combine architecture specific images into a multi-a…
Browse files Browse the repository at this point in the history
…rch manifest (#7)
  • Loading branch information
hutchic authored Dec 6, 2022
1 parent 85f44ef commit 76c670b
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,3 +84,21 @@ jobs:
with:
tag_name: ${{ needs.release.outputs.release-git-tag }}
files: ${{ matrix.architecture }}-${{ matrix.ostype }}.tar.gz

multi-arch:
needs: [release, artifacts]
name: Create Release Artifacts
if: ${{ needs.release.outputs.published == 'true' }}
strategy:
matrix:
ostype: [linux-gnu, linux-musl]
runs-on: ubuntu-latest
steps:
- name: Combine per architecture images into a single multi-arch manifest
run: |
docker pull ghcr.io/kong/template-github-release:${{ needs.release.outputs.release-git-tag }}-aarch64-${{ matrix.ostype }}
docker pull ghcr.io/kong/template-github-release:${{ needs.release.outputs.release-git-tag }}-x86_64-${{ matrix.ostype }}
docker manifest ghcr.io/kong/template-github-release:${{ needs.release.outputs.release-git-tag }}-${{ matrix.ostype }} \
ghcr.io/kong/template-github-release:${{ needs.release.outputs.release-git-tag }}-aarch64-${{ matrix.ostype }} \
ghcr.io/kong/template-github-release:${{ needs.release.outputs.release-git-tag }}-x86_64-${{ matrix.ostype }}
ghcr.io/kong/template-github-release:${{ needs.release.outputs.release-git-tag }}-${{ matrix.ostype }}

0 comments on commit 76c670b

Please sign in to comment.