docker #171
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: docker | |
| on: | |
| workflow_dispatch: # manually run | |
| inputs: | |
| release: | |
| description: 'Release name' | |
| required: true | |
| default: 'arrowsquid' | |
| tag: | |
| description: 'Tag name' | |
| required: true | |
| default: 'latest' | |
| images: | |
| description: 'Space-separated list of images to publish (leave empty for all)' | |
| required: false | |
| env: | |
| CI: true | |
| jobs: | |
| publish: | |
| name: docker-publish | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Docker login | |
| uses: docker/login-action@v3 | |
| with: | |
| username: ${{ secrets.DOCKER_LOGIN }} | |
| password: ${{ secrets.DOCKER_TOKEN }} | |
| - name: Set up QEMU | |
| uses: docker/setup-qemu-action@v3 | |
| with: | |
| platforms: all | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| with: | |
| use: true | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| ref: release/${{ inputs.release }} | |
| - name: Build and Publish | |
| run: | | |
| IFS=' ' read -r -a image_array <<< "${{ inputs.images }}" | |
| ./ops/docker-publish.sh "${{ inputs.release }}" "${{ inputs.tag }}" "" "${image_array[@]}" |