From 76c670b36c3e004728285125506240d96a48f258 Mon Sep 17 00:00:00 2001 From: Colin Hutchinson Date: Mon, 5 Dec 2022 21:43:44 -0500 Subject: [PATCH] feat(multi-arch): combine architecture specific images into a multi-arch manifest (#7) --- .github/workflows/release.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 3125636..e2f2257 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -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 }}