Skip to content

Commit 7b76d49

Browse files
committed
build: only tag latest in docker when version is not prerelease
version tag has to match "v0.1.2" Signed-off-by: Javi Fontan <[email protected]>
1 parent 7c35fd3 commit 7b76d49

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ jobs:
3838

3939
before_deploy:
4040
- make packages
41-
- DOCKER_PUSH_LATEST=1 make docker-push
41+
- export DOCKER_PUSH_LATEST=$(echo ${TRAVIS_BRANCH} | grep -E '^v[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+$') || true
42+
- make docker-push
4243
- make static-package
4344

4445
deploy:

0 commit comments

Comments
 (0)