update changelog (#24) #8
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: Push Release Tags | |
| on: | |
| push: | |
| tags: | |
| - '**' | |
| workflow_call: | |
| workflow_dispatch: | |
| env: | |
| DOCKER_METADATA_SET_OUTPUT_ENV: 'true' | |
| jobs: | |
| retag: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up QEMU | |
| uses: docker/setup-qemu-action@v3 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Login to GitHub Container Registry | |
| uses: docker/login-action@v3 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Determine the sha-based image tag to retag | |
| id: get-base-image | |
| uses: docker/metadata-action@v5 | |
| with: | |
| images: ghcr.io/${{ github.repository }} | |
| tags: type=sha | |
| - name: Verify that the image was previously built | |
| env: | |
| BASE_IMAGE: ${{ steps.get-base-image.outputs.tags }} | |
| run: | | |
| docker pull "$BASE_IMAGE" | |
| - name: Produce release tags | |
| id: tag-meta | |
| uses: docker/metadata-action@v5 | |
| with: | |
| images: ghcr.io/${{ github.repository }} | |
| flavor: latest=false | |
| tags: | | |
| type=ref,event=tag | |
| type=semver,pattern={{major}} | |
| type=semver,pattern={{major}}.{{minor}} | |
| type=semver,pattern={{version}} | |
| - name: Retag the pulled image | |
| env: | |
| BASE_IMAGE: ${{ steps.get-base-image.outputs.tags }} | |
| run: | | |
| echo "$DOCKER_METADATA_OUTPUT_TAGS" | tr ' ' '\n' | xargs -n1 docker tag "$BASE_IMAGE" | |
| docker push --all-tags "$(echo "$BASE_IMAGE" | cut -f1 -d:)" |