Skip to content

Commit

Permalink
CI: build multi-platform Docker images 💚
Browse files Browse the repository at this point in the history
  • Loading branch information
derhuerst committed Jan 6, 2024
1 parent cfcf7d0 commit 66b3f56
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,22 @@ jobs:
- run: npm run lint
- run: npm test

- name: set up QEMU
uses: docker/setup-qemu-action@v3
- name: configure Docker to use buildx
uses: docker/setup-buildx-action@v2
- name: log in to Docker Hub
uses: docker/login-action@v1

with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_ACCESS_TOKEN }}
- name: build Docker image & push to Docker Hub
uses: docker/build-push-action@v2
uses: docker/build-push-action@v4
with:
push: true
platforms: linux/amd64,linux/arm64
tags: derhuerst/berlin-gtfs-rt-server
# https://docs.docker.com/build/ci/github-actions/examples/#github-cache
cache-from: type=gha
cache-to: type=gha,mode=max,oci-mediatypes=true,compression=zstd

0 comments on commit 66b3f56

Please sign in to comment.