Skip to content

Commit

Permalink
multi-arch image builds (linux/amd64 and linux/arm64)
Browse files Browse the repository at this point in the history
Add linux/amd64 and linux/arm64 platforms to buildah builds of operator,
bundle and catalog images.
Add qemu dependency install to image build jobs.

Brings it inline with other kuadrant image builds (kuadrant-operator,
authorino-operator etc..)

Note: Warning messages appear in the logs "Failed to decode the keys
["machine"]", but it appears to be a known issue that can be
ignored. redhat-actions/buildah-build#101
  • Loading branch information
mikenairn committed May 16, 2024
1 parent beb6ef2 commit 8a9ab7c
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/build-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,18 @@ jobs:
run: |
echo "IMG_TAGS=latest ${{ env.IMG_TAGS }}" >> $GITHUB_ENV
- name: Install qemu dependency
run: |
sudo apt-get update
sudo apt-get install -y qemu-user-static
- name: Build Image
id: build-image
uses: redhat-actions/buildah-build@v2
with:
image: ${{ env.OPERATOR_NAME }}
tags: ${{ env.IMG_TAGS }}
platforms: linux/amd64,linux/arm64
dockerfiles: |
./Dockerfile
Expand Down Expand Up @@ -74,12 +80,18 @@ jobs:
- name: Run make bundle
run: make bundle IMG=${{ needs.build.outputs.build-image }}

- name: Install qemu dependency
run: |
sudo apt-get update
sudo apt-get install -y qemu-user-static
- name: Build Image
id: build-image
uses: redhat-actions/buildah-build@v2
with:
image: ${{ env.OPERATOR_NAME }}-bundle
tags: ${{ needs.build.outputs.build-tags }}
platforms: linux/amd64,linux/arm64
dockerfiles: |
./bundle.Dockerfile
Expand Down Expand Up @@ -111,12 +123,18 @@ jobs:
- name: Run make catalog-build
run: make catalog-build BUNDLE_IMG=${{ needs.build-bundle.outputs.bundle-image }}

- name: Install qemu dependency
run: |
sudo apt-get update
sudo apt-get install -y qemu-user-static
- name: Build Image
id: build-image
uses: redhat-actions/buildah-build@v2
with:
image: ${{ env.OPERATOR_NAME }}-catalog
tags: ${{ needs.build.outputs.build-tags }}
platforms: linux/amd64,linux/arm64
context: ./tmp/catalog
dockerfiles: |
./tmp/catalog/index.Dockerfile
Expand Down

0 comments on commit 8a9ab7c

Please sign in to comment.