Skip to content

Commit

Permalink
feat(docker): add dev build
Browse files Browse the repository at this point in the history
  • Loading branch information
idawnlight committed Aug 18, 2019
1 parent ee25184 commit 2298131
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@ script:
set -Eeuo pipefail
set -x
docker build -t travis .
if ("$TRAVIS_TAG" != "")
then
if [ "$TRAVIS_TAG" != "" ]; then
image_version=`echo -e "$TRAVIS_TAG\c" | awk -F 'v' '{print $2}'`
docker-publish travis idawnlight/avatar-cache:${image_version}
else
image_version=$(cat index.php | grep 'const VERSION = ' | awk -F "'" '{print $2}')-dev
fi
docker-publish travis idawnlight/avatar-cache:${image_version}
)
after_script:
- docker images

0 comments on commit 2298131

Please sign in to comment.