Fix Gitea references to use GitHub context in Docker publish workflow

This commit is contained in:
Joakim Hellsén 2025-07-24 23:58:08 +02:00
commit 9f7d71dbb0

View file

@ -54,14 +54,14 @@ jobs:
DOCKER_METADATA_ANNOTATIONS_LEVELS: manifest,index DOCKER_METADATA_ANNOTATIONS_LEVELS: manifest,index
with: with:
images: ghcr.io/thelovinator1/anewdawn images: ghcr.io/thelovinator1/anewdawn
tags: type=raw,value=latest,enable=${{ gitea.ref == format('refs/heads/{0}', 'master') }} tags: type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'master') }}
# Build and push the Docker image # Build and push the Docker image
- uses: docker/build-push-action@v6 - uses: docker/build-push-action@v6
with: with:
context: . context: .
platforms: linux/amd64,linux/arm64 platforms: linux/amd64,linux/arm64
push: ${{ gitea.event_name != 'pull_request' }} push: ${{ github.event_name != 'pull_request' }}
labels: ${{ steps.meta.outputs.labels }} labels: ${{ steps.meta.outputs.labels }}
tags: ${{ steps.meta.outputs.tags }} tags: ${{ steps.meta.outputs.tags }}
annotations: ${{ steps.meta.outputs.annotations }} annotations: ${{ steps.meta.outputs.annotations }}