Skip to content

Commit

Permalink
Build for arm64 as well as amd64
Browse files Browse the repository at this point in the history
  • Loading branch information
jellybob committed Dec 11, 2023
1 parent 67a457b commit 3318e89
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
Expand All @@ -34,6 +38,4 @@ jobs:
- name: Publish base image
run: docker push ghcr.io/emfcamp/website-base:latest
- name: Build base-dev image
run: docker build -t ghcr.io/emfcamp/website-base-dev:latest -f ./docker/Dockerfile.base-dev .
- name: Publish base-dev image
run: docker push ghcr.io/emfcamp/website-base-dev:latest
run: docker buildx build -t ghcr.io/emfcamp/website-base-dev:latest -f ./docker/Dockerfile.base-dev --push --platform=linux/amd64,linux/arm64 .
12 changes: 6 additions & 6 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,17 @@ jobs:
needs: test
steps:
- uses: actions/checkout@v1
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build app image
run: docker build -t ghcr.io/emfcamp/website:latest -f ./Dockerfile.prod .
- name: Publish app image
run: docker push ghcr.io/emfcamp/website:latest
run: docker buildx build -t ghcr.io/emfcamp/website:latest -f ./Dockerfile.prod --push --platform=linux/amd64,linux/arm64 .
- name: Build static image
run: docker build -t ghcr.io/emfcamp/website-static:latest -f ./docker/static/Dockerfile ./docker/static/
- name: Publish static image
run: docker push ghcr.io/emfcamp/website-static:latest
run: docker buildx build -t ghcr.io/emfcamp/website-static:latest -f ./docker/static/Dockerfile --push --platform=linux/amd64,linux/arm64 ./docker/static/

0 comments on commit 3318e89

Please sign in to comment.