Publish all multi-arch Docker image versions #24
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: Publish all multi-arch Docker image versions | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| last_good_version: | |
| description: 'Last version to skip' | |
| required: false | |
| type: string | |
| jobs: | |
| fetch_versions: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| matrix: ${{ steps.versions.outputs.matrix }} | |
| steps: | |
| - name: Check out the repository to the runner | |
| uses: actions/checkout@v6 | |
| - id: versions | |
| run: | | |
| VERSIONS=$(python update.py ${{ inputs.last_good_version }} ) | |
| echo $VERSIONS | |
| echo matrix=$VERSIONS >> "$GITHUB_OUTPUT" | |
| call_build: | |
| needs: | |
| - fetch_versions | |
| strategy: | |
| max-parallel: 1 | |
| matrix: ${{ fromJson(needs.fetch_versions.outputs.matrix) }} | |
| uses: ./.github/workflows/docker-publish.yml | |
| with: | |
| overpass_version: ${{ matrix.version}} | |
| secrets: | |
| DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }} |