We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 93e814c commit bfe2562Copy full SHA for bfe2562
.github/workflows/main.yml
@@ -43,12 +43,10 @@ jobs:
43
VERSION=pr-${{ github.event.number }}
44
fi
45
TAGS="${DOCKER_IMAGE}:${VERSION}"
46
- if [[ $VERSION =~ ^v[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$ ]]; then
+ if [[ $VERSION =~ ^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$ ]]; then
47
MINOR=${VERSION%.*}
48
MAJOR=${MINOR%.*}
49
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}"
52
53
echo ::set-output name=image::${DOCKER_IMAGE}
54
echo ::set-output name=version::${VERSION}
0 commit comments