self hosted docker builds attempted fix (#4603)
This commit is contained in:
parent
87b165c304
commit
11027e3487
27
.github/workflows/docker.yml
vendored
27
.github/workflows/docker.yml
vendored
@ -103,17 +103,22 @@ jobs:
|
|||||||
- name: Set modernity suffix
|
- name: Set modernity suffix
|
||||||
if: endsWith(matrix.binary, '-portable') != true
|
if: endsWith(matrix.binary, '-portable') != true
|
||||||
run: echo "MODERNITY_SUFFIX=-modern" >> $GITHUB_ENV;
|
run: echo "MODERNITY_SUFFIX=-modern" >> $GITHUB_ENV;
|
||||||
# Install dependencies for emulation. Have to create a new builder to pick up emulation support.
|
|
||||||
- name: Build Dockerfile and push
|
- name: Install QEMU
|
||||||
run: |
|
run: sudo apt-get update && sudo apt-get install -y qemu-user-static
|
||||||
docker run --privileged --rm tonistiigi/binfmt --install ${SHORT_ARCH}
|
|
||||||
docker buildx create --use --name cross-builder
|
- name: Set up Docker Buildx
|
||||||
docker buildx build \
|
uses: docker/setup-buildx-action@v2
|
||||||
--platform=linux/${SHORT_ARCH} \
|
|
||||||
--file ./Dockerfile.cross . \
|
- name: Build and push
|
||||||
--tag ${IMAGE_NAME}:${VERSION}-${SHORT_ARCH}${VERSION_SUFFIX}${MODERNITY_SUFFIX}${FEATURE_SUFFIX} \
|
uses: docker/build-push-action@v4
|
||||||
--provenance=false \
|
with:
|
||||||
--push
|
file: ./Dockerfile.cross
|
||||||
|
context: .
|
||||||
|
platforms: linux/${SHORT_ARCH}
|
||||||
|
push: true
|
||||||
|
tags: ${IMAGE_NAME}:${VERSION}-${SHORT_ARCH}${VERSION_SUFFIX}${MODERNITY_SUFFIX}${FEATURE_SUFFIX}
|
||||||
|
|
||||||
build-docker-multiarch:
|
build-docker-multiarch:
|
||||||
name: build-docker-multiarch${{ matrix.modernity }}
|
name: build-docker-multiarch${{ matrix.modernity }}
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
|
Loading…
Reference in New Issue
Block a user