Skip to content
This repository was archived by the owner on Jun 30, 2021. It is now read-only.

Commit afd4802

Browse files
committed
Fix: Docker push major tags
1 parent 3824f3e commit afd4802

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

test/script_push

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,16 @@ docker_login_tag_push() {
3131
docker tag selenium:latest elgalu/selenium:latest
3232

3333
# e.g. TAG_VERSION_MAJOR="3"
34-
TAG_VERSION_MAJOR="${testString::1}"
34+
TAG_VERSION_MAJOR="${TRAVIS_TAG::1}"
35+
echo "TAG_VERSION_MAJOR=${TAG_VERSION_MAJOR}"
3536
docker tag selenium:latest elgalu/selenium:${TAG_VERSION_MAJOR}
3637
# e.g. TAG_VERSION_MAJ_MINOR="3.3"
37-
TAG_VERSION_MAJ_MINOR="${testString::3}"
38+
TAG_VERSION_MAJ_MINOR="${TRAVIS_TAG::3}"
39+
echo "TAG_VERSION_MAJ_MINOR=${TAG_VERSION_MAJ_MINOR}"
3840
docker tag selenium:latest elgalu/selenium:${TAG_VERSION_MAJ_MINOR}
3941
# e.g. TAG_VERSION_MAJ_MIN_PATCH="3.3.1"
40-
TAG_VERSION_MAJ_MIN_PATCH="${testString::5}"
42+
TAG_VERSION_MAJ_MIN_PATCH="${TRAVIS_TAG::5}"
43+
echo "TAG_VERSION_MAJ_MIN_PATCH=${TAG_VERSION_MAJ_MIN_PATCH}"
4144
docker tag selenium:latest elgalu/selenium:${TAG_VERSION_MAJ_MIN_PATCH}
4245

4346
# Push them all

0 commit comments

Comments
 (0)