fix GTFS merging 🐛 #2
Workflow file for this run
This file contains hidden or 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: | |
| - '*' | |
| jobs: | |
| lint-test: | |
| name: lint & test | |
| uses: './.github/workflows/test.yml' | |
| build-publish: | |
| name: build & publish Docker image | |
| needs: | |
| - lint-test | |
| runs-on: ubuntu-latest | |
| permissions: | |
| packages: write | |
| steps: | |
| - name: checkout | |
| uses: actions/checkout@v4 | |
| - name: log into the GitHub Container Registry | |
| uses: docker/login-action@v3 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.actor }} | |
| password: ${{ github.token }} | |
| - name: compute Docker image OCI metadata from commit & repo | |
| id: docker-metadata | |
| uses: docker/metadata-action@v5 | |
| with: | |
| labels: | | |
| org.opencontainers.image.version=${{ github.ref_name }} | |
| - name: set up Docker buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: set up QEMU for cross-platform builds | |
| uses: docker/setup-qemu-action@v3 | |
| - name: compute Docker image name | |
| run: | | |
| # lower-case repo name | |
| echo "DOCKER_IMAGE=ghcr.io/${GITHUB_REPOSITORY,,}" >>${GITHUB_ENV} | |
| env: | |
| GITHUB_REPOSITORY: '${{ github.repository }}' | |
| - name: build and push Docker image | |
| uses: docker/build-push-action@v5 | |
| with: | |
| push: true | |
| tags: | | |
| ${{ env.DOCKER_IMAGE }}:latest | |
| ${{ env.DOCKER_IMAGE }}:${{ github.ref_name }} | |
| labels: ${{ steps.docker-metadata.outputs.labels }} | |
| platforms: linux/amd64,linux/arm64 | |
| # https://docs.docker.com/build/ci/github-actions/cache/#cache-backend-api | |
| cache-from: type=gha | |
| cache-to: type=gha,mode=max |