Skip to content

Commit dd3ecdf

Browse files
committed
fix meta step
1 parent aa50a25 commit dd3ecdf

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/docker-publish.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,11 @@ jobs:
5858
uses: docker/metadata-action@v5
5959
with:
6060
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
61+
tags: |
62+
type=raw,value=latest,enable={{is_default_branch}}
63+
type=ref,event=branch
64+
type=semver,pattern={{version}}
65+
type=sha
6166
6267
# Build and push Docker image with Buildx (don't push on PR)
6368
# https://github.com/docker/build-push-action
@@ -66,8 +71,7 @@ jobs:
6671
uses: docker/build-push-action@v6
6772
with:
6873
context: .
69-
push: ${{ github.event_name != 'pull_request' }}
7074
tags: ${{ steps.meta.outputs.tags }}
7175
labels: ${{ steps.meta.outputs.labels }}
7276
cache-from: type=gha
73-
cache-to: type=gha,mode=max
77+
cache-to: type=gha,mode=max

0 commit comments

Comments
 (0)