Skip to content

Commit

Permalink
Build and release x86+arm manifests
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
BlaineEXE committed Jul 18, 2023
1 parent 7b15d00 commit 6604d39
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/tag-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,22 @@ 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:
context: .
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
Expand All @@ -64,4 +73,4 @@ jobs:
tag: ${{ github.ref_name }}
artifacts: "examples/*/*.yaml"
generateReleaseNotes: true
token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 6604d39

Please sign in to comment.