From 6604d39a8d6c29cd40cbff50fa0e7e1cb2dcceff Mon Sep 17 00:00:00 2001 From: Blaine Gardner Date: Tue, 18 Jul 2023 16:07:55 -0600 Subject: [PATCH] Build and release x86+arm manifests Use docker buildx GH action to build x86_64/amd64 as well as arm64 container images in build and release action. Signed-off-by: Blaine Gardner --- .github/workflows/tag-release.yaml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tag-release.yaml b/.github/workflows/tag-release.yaml index 2f1642f..613929d 100644 --- a/.github/workflows/tag-release.yaml +++ b/.github/workflows/tag-release.yaml @@ -32,6 +32,14 @@ jobs: username: ${{ secrets.QUAY_USERNAME }} password: ${{ secrets.QUAY_PASSWORD }} + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + + - name: Set up QEMU for multi-arch builds + uses: docker/setup-qemu-action@v2 + with: + platforms: 'arm64' + - name: Build bundle container image uses: docker/build-push-action@v4 with: @@ -39,6 +47,7 @@ jobs: file: Dockerfile push: true tags: quay.io/ceph/cosi:${{ github.ref_name }} + platforms: linux/amd64,linux/arm64 publish_release: name: Publish a release based on the tag @@ -64,4 +73,4 @@ jobs: tag: ${{ github.ref_name }} artifacts: "examples/*/*.yaml" generateReleaseNotes: true - token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + token: ${{ secrets.GITHUB_TOKEN }}