Skip to content

Commit 03d3b37

Browse files
change branch match
1 parent c60c4d0 commit 03d3b37

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.travis.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ stages:
2121
- test-archive-none
2222
- test-archive-zbackup
2323
- name: deploy
24-
if: branch = master
24+
if: branch =~ ^\d+\.\d+\.\d+$
2525
jobs:
2626
include:
2727
- stage: flake8
@@ -69,8 +69,7 @@ jobs:
6969
script:
7070
- docker login -u "$DOCKERHUB_USERNAME" -p "$DOCKERHUB_PASSWORD"
7171
- docker load -i $TRAVIS_BUILD_DIR/docker/mongodb_consistent_backup.tar
72-
- VERSION=$(cat VERSION)
7372
- docker push "${DOCKERHUB_PATH}:latest"
74-
- docker push "${DOCKERHUB_PATH}:${VERSION}"
73+
- docker push "${DOCKERHUB_PATH}:$(cat VERSION)"
7574
on:
7675
tags: true

0 commit comments

Comments
 (0)