Skip to content

Commit

Permalink
Fix Docker Build (#87)
Browse files Browse the repository at this point in the history
* Fix the Architectures

* More architecture cleanup
  • Loading branch information
Kaiede authored Apr 24, 2024
1 parent eca1c57 commit ff467d2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
name: Docker - ${{ matrix.os }}
if: github.repository == 'Kaiede/Bedrockifier'
env:
ARCH: ${{ matrix.os == 'ubuntu-latest' && 'linux/amd64' || 'linux/arm64' }}
arch: ${{ matrix.os == 'ubuntu-latest' && 'amd64' || 'arm64' }}
strategy:
matrix:
os: ['ubuntu-latest', 'buildjet-2vcpu-ubuntu-2204-arm']
Expand All @@ -38,18 +38,18 @@ jobs:
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Build ${{ matrix.arch }}
- name: Build ${{ env.arch }}
uses: docker/build-push-action@v5
with:
builder: ${{ steps.buildx.outputs.name }}
context: .
file: ./Docker/Dockerfile
platforms: ${{ env.ARCH }}
platforms: linux/${{ env.arch }}
push: ${{ github.event_name != 'pull_request' }}
tags: kaiede/minecraft-bedrock-backup:${{ env.docker_tag }}-${{ matrix.arch }}
tags: kaiede/minecraft-bedrock-backup:${{ env.docker_tag }}-${{ env.arch }}
build-args: |
QEMU_CPU=max
arch=${{ matrix.arch }}
arch=${{ env.arch }}
swift_base=${{ env.swift_base }}
swift_version=${{ env.swift_version }}
Expand Down

0 comments on commit ff467d2

Please sign in to comment.