Skip to content

Commit

Permalink
ci: fix cross compilation
Browse files Browse the repository at this point in the history
base image has to be set in the job so it doesn't try to pull host arch
  • Loading branch information
odrling committed Jul 22, 2024
1 parent 5727b79 commit d469b61
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ jobs:
image: ${{ env.IMAGE_NAME }}
tags: ${{ github.sha }}-${{ matrix.config.arch }}
labels: ${{ steps.meta.outputs.labels }}
build-args: ARCH=${{ matrix.config.arch }}
build-args: |
ARCH=${{ matrix.config.arch }}
BUILDER_IMAGE=ghcr.io/odrling/chimera:cross-x86_64
containerfiles: Containerfile

- name: Push image
Expand Down
3 changes: 2 additions & 1 deletion Containerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM ghcr.io/odrling/chimera:cross AS builder
ARG BUILDER_IMAGE=ghcr.io/odrling/chimera:cross
FROM ${BUILDER_IMAGE} AS builder
ARG ARCH

COPY . /ffmpegaacsucks
Expand Down

0 comments on commit d469b61

Please sign in to comment.