Skip to content

Commit 30af4b6

Browse files
author
Adrián Parilli
committed
Do not push on new semver only
1 parent 3268440 commit 30af4b6

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

.github/workflows/docker-publish.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111
push:
1212
branches: [ "master" ]
1313
# Publish semver tags as releases.
14-
tags: [ 'v*.*.*' ]
14+
#tags: [ 'v*.*.*' ]
1515
pull_request:
1616
branches: [ "master" ]
1717

@@ -67,13 +67,12 @@ jobs:
6767
uses: docker/metadata-action@96383f45573cb7f253c731d3b3ab81c87ef81934 # v5.0.0
6868
with:
6969
images: ${{ env.REGISTRY }}/${{ env.IMAGE_OWNER }}/${{ env.IMAGE_NAME }}
70+
# Set 'latest' and semver tags
7071
tags: |
71-
# set latest tag for master branch
72-
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'master') }}
73-
# set version tag from semver
74-
type=semver,pattern={{major}},enable=${{ github.ref == format('refs/heads/{0}', 'master') }}
75-
type=semver,pattern={{major}}.{{minor}},enable=${{ github.ref == format('refs/heads/{0}', 'master') }}
76-
type=semver,pattern={{major}}.{{minor}}.{{patch}},enable=${{ github.ref == format('refs/heads/{0}', 'master') }}
72+
type=raw,value=latest
73+
type=semver,pattern={{version}}
74+
type=semver,pattern={{major}}.{{minor}}
75+
type=semver,pattern={{major}}
7776
7877
# Build and push Docker image with Buildx (don't push on PR)
7978
# https://github.com/docker/build-push-action

0 commit comments

Comments
 (0)