Skip to content

Commit f297be5

Browse files
author
Daniel Rataj
committed
Update CI
1 parent b66cade commit f297be5

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

.github/workflows/publish.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@ name: Create a container
22

33
on:
44
push:
5-
# Publish `master` as Docker `latest` image.
6-
branches:
7-
- master
8-
95
# Publish `v1.2.3` tags as releases.
106
tags:
117
- v*
@@ -36,8 +32,8 @@ jobs:
3632
# Strip "v" prefix from tag name
3733
[[ "${{ github.ref }}" == "refs/tags/"* ]] && VERSION=$(echo $VERSION | sed -e 's/^v//')
3834
39-
# Use Docker `latest` tag convention
40-
[ "$VERSION" == "master" ] && VERSION=latest
35+
# keep only the major.minor release, no patch
36+
[[ "${{ github.ref }}" == "refs/tags/"* ]] && VERSION=$(echo $VERSION | sed -e 's/\.[0-9]*$//')
4137
4238
echo IMAGE_ID=$IMAGE_ID
4339
echo VERSION=$VERSION

0 commit comments

Comments
 (0)