Skip to content

Commit

Permalink
Merge pull request #154 from docksal/develop
Browse files Browse the repository at this point in the history
Release 2.10.2
  • Loading branch information
lmakarov authored Nov 18, 2019
2 parents 2268b21 + 8c64261 commit a8a4f57
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions scripts/docker-push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,15 @@ tag_and_push ()
# Possible docker image tags
IMAGE_TAG_EDGE="edge-php${VERSION}"
IMAGE_TAG_STABLE="php${VERSION}"

# Read the split parts
IFS='.' read -a ver_arr <<< "$TRAVIS_TAG"

# Major version, e.g. 2-php7.2
IMAGE_TAG_RELEASE_MAJOR="${TRAVIS_TAG:1:1}-php${VERSION}"
IMAGE_TAG_RELEASE_MAJOR="${ver_arr[0]#v*}-php${VERSION}"

# Major-minor version, e.g. 2.5-php7.2
IMAGE_TAG_RELEASE_MAJOR_MINOR="${TRAVIS_TAG:1:3}-php${VERSION}"
IMAGE_TAG_RELEASE_MAJOR_MINOR="${ver_arr[0]#v*}.${ver_arr[1]}-php${VERSION}"
IMAGE_TAG_LATEST="latest"

# Skip pull request builds
Expand Down

0 comments on commit a8a4f57

Please sign in to comment.