Skip to content

Commit bfe2562

Browse files
authored
Update main.yml
1 parent 93e814c commit bfe2562

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,10 @@ jobs:
4343
VERSION=pr-${{ github.event.number }}
4444
fi
4545
TAGS="${DOCKER_IMAGE}:${VERSION}"
46-
if [[ $VERSION =~ ^v[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$ ]]; then
46+
if [[ $VERSION =~ ^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$ ]]; then
4747
MINOR=${VERSION%.*}
4848
MAJOR=${MINOR%.*}
4949
TAGS="$TAGS,${DOCKER_IMAGE}:${MINOR},${DOCKER_IMAGE}:${MAJOR},${DOCKER_IMAGE}:latest"
50-
elif [ "${{ github.event_name }}" = "push" ]; then
51-
TAGS="$TAGS,${DOCKER_IMAGE}:sha-${GITHUB_SHA::8}"
5250
fi
5351
echo ::set-output name=image::${DOCKER_IMAGE}
5452
echo ::set-output name=version::${VERSION}

0 commit comments

Comments
 (0)