Skip to content

0.75.0

0.75.0 #32

Workflow file for this run

name: Docker Latest Tag
on:
release:
types: [published]
jobs:
tag-latest:
name: Tag Docker image as latest
runs-on: ubuntu-latest
if: github.event.release.prerelease == false
steps:
- name: Log in to GitHub Container Registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Tag multi-platform image as latest
run: |
IMAGE_NAME=ghcr.io/${{ github.repository }}
VERSION=${{ github.event.release.tag_name }}
VERSION=${VERSION#v}
docker buildx imagetools create --tag ${IMAGE_NAME}:latest ${IMAGE_NAME}:${VERSION}
echo "Tagged multi-platform ${IMAGE_NAME}:${VERSION} as ${IMAGE_NAME}:latest"