Skip to content

Commit

Permalink
Try building with QEMU
Browse files Browse the repository at this point in the history
  • Loading branch information
PSchmiedmayer committed Aug 14, 2021
1 parent f49ea70 commit 396f6e9
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
19 changes: 19 additions & 0 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,25 @@ jobs:
run: swift --version
- name: Build and test
run: swift build
linuxarmwebservices:
name: Docker Build and Push Image
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
with:
platforms: arm64
- name: Set up docker buildx
uses: docker/setup-buildx-action@v1
with:
install: true
- name: Build
uses: docker/build-push-action@v2
with:
context: .
file: ./WebService/Dockerfile
platforms: linux/arm64
linuxwebservices:
name: Linux WebService ${{ matrix.linux }}
runs-on: ubuntu-latest
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
jobs:
docker:
name: Docker Build and Push Image
runs-on: ARM64
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
Expand All @@ -19,6 +19,8 @@ jobs:
fallback: latest
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
with:
platforms: linux/arm64,linux/amd64
- name: Set up docker buildx
uses: docker/setup-buildx-action@v1
with:
Expand All @@ -35,6 +37,7 @@ jobs:
with:
context: .
file: ./WebService/Dockerfile
platforms: linux/arm64,linux/amd64
push: true
tags: ghcr.io/fa21-collaborative-drone-interactions/xpensewebservice:latest,ghcr.io/fa21-collaborative-drone-interactions/xpensewebservice:${{ steps.latesttag.outputs.tag }}
- name: Image digest
Expand Down

0 comments on commit 396f6e9

Please sign in to comment.