Skip to content

Commit

Permalink
Add amd64 build.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeffrey-Vervoort-KNMI committed Apr 16, 2024
1 parent 8a90901 commit 3c0843c
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/registry_upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@ on:
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
CPU: "arm64"

jobs:
docker-build-and-publish-arm:
docker-build-and-publish:
runs-on: ubuntu-latest
# Sets the permissions granted to the `GITHUB_TOKEN` for the actions in this job.
permissions:
Expand All @@ -25,18 +26,21 @@ jobs:
include:
- context: ./datastore/datastore/
IMAGE_NAME: datastore
CPU: ["arm64", "amd64"]
- context: ./api/
IMAGE_NAME: api
CPU: ["arm64", "amd64"]
# - context: ./ingest/
# IMAGE_NAME: ingest
# CPU: ["arm64", "amd64"]
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
platforms: 'arm64'
platforms: ${{ env.CPU }}

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
Expand Down Expand Up @@ -66,7 +70,7 @@ jobs:
uses: docker/build-push-action@v5
with:
context: ${{ matrix.context }}
platforms: linux/arm64
platforms: linux/${{ env.CPU }}
file: ${{ matrix.context }}/Dockerfile
pull: true
push: true
Expand Down

0 comments on commit 3c0843c

Please sign in to comment.