debug CI 💚 #11
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build & publish Docker image | |
on: | |
push: | |
tags: | |
- '*' | |
branches: | |
- debug-ci | |
jobs: | |
build-and-publish: | |
name: lint & publish Docker image | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v2 | |
- name: setup Node | |
uses: actions/setup-node@v1 | |
with: | |
node-version: '16' | |
- run: | | |
apt install -y python3 | |
- run: npm install | |
- 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@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 |