We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b66cade commit f297be5Copy full SHA for f297be5
.github/workflows/publish.yml
@@ -2,10 +2,6 @@ name: Create a container
2
3
on:
4
push:
5
- # Publish `master` as Docker `latest` image.
6
- branches:
7
- - master
8
-
9
# Publish `v1.2.3` tags as releases.
10
tags:
11
- v*
@@ -36,8 +32,8 @@ jobs:
36
32
# Strip "v" prefix from tag name
37
33
[[ "${{ github.ref }}" == "refs/tags/"* ]] && VERSION=$(echo $VERSION | sed -e 's/^v//')
38
34
39
- # Use Docker `latest` tag convention
40
- [ "$VERSION" == "master" ] && VERSION=latest
35
+ # keep only the major.minor release, no patch
+ [[ "${{ github.ref }}" == "refs/tags/"* ]] && VERSION=$(echo $VERSION | sed -e 's/\.[0-9]*$//')
41
42
echo IMAGE_ID=$IMAGE_ID
43
echo VERSION=$VERSION
0 commit comments