Skip to content

Commit

Permalink
fix(ci): Enable multiarch with qemu
Browse files Browse the repository at this point in the history
Signed-off-by: RJ Trujillo <[email protected]>
  • Loading branch information
EyeCantCU committed May 27, 2024
1 parent 8cf044c commit d281980
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-40.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: ublue main 40
name: ublue asahi 40
on:
pull_request:
merge_group:
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/reusable-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ concurrency:

jobs:
build_ublue:
name: main
name: asahi
runs-on: ubuntu-24.04
permissions:
contents: read
Expand Down Expand Up @@ -140,6 +140,9 @@ jobs:
io.artifacthub.package.readme-url=https://raw.githubusercontent.com/${{ github.repository }}/main/README.md
io.artifacthub.package.logo-url=https://avatars.githubusercontent.com/u/120078124?s=200&v=4
- name: Set up qemu
uses: docker/setup-qemu-action@v2

- name: Pull base image
uses: Wandalen/[email protected]
with:
Expand All @@ -148,14 +151,13 @@ jobs:
command: |
# pull the base image used for FROM in containerfile so
# we can retry on that unfortunately common failure case
podman pull quay.io/${{ env.SOURCE_ORG }}/${{ env.SOURCE_IMAGE }}:${{ matrix.fedora_version }}
podman pull --platform linux/aarch64 quay.io/${{ env.SOURCE_ORG }}/${{ env.SOURCE_IMAGE }}:${{ matrix.fedora_version }}
# Build image using Buildah action
- name: Build Image
id: build_image
uses: redhat-actions/buildah-build@v2
with:
archs: "aarch64"
containerfiles: |
./Containerfile
image: ${{ env.IMAGE_NAME }}
Expand All @@ -167,6 +169,7 @@ jobs:
SOURCE_IMAGE=${{ env.SOURCE_IMAGE }}
FEDORA_MAJOR_VERSION=${{ matrix.fedora_version }}
labels: ${{ steps.meta.outputs.labels }}
platforms: "linux/aarch64"
oci: false

# Workaround bug where capital letters in your GitHub username make it impossible to push to GHCR.
Expand Down

0 comments on commit d281980

Please sign in to comment.