Skip to content

Commit

Permalink
Fixed tagged CI docker builds
Browse files Browse the repository at this point in the history
  • Loading branch information
AlinaNova21 committed May 10, 2019
1 parent 927ebde commit 3689c48
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,10 @@ jobs:
command: |
set -x
DOCKER_IMAGE=$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME
docker tag $CIRCLE_PROJECT_REPONAME $DOCKER_IMAGE:$CIRCLE_BRANCH
docker tag $CIRCLE_PROJECT_REPONAME $DOCKER_IMAGE:${CIRCLE_SHA1:0:7}
if [[ -n "$CIRCLE_BRANCH" ]]; then
docker tag $CIRCLE_PROJECT_REPONAME $DOCKER_IMAGE:$CIRCLE_BRANCH
fi
if [[ -n "$CIRCLE_TAG" ]]; then
docker tag $CIRCLE_PROJECT_REPONAME $DOCKER_IMAGE:$CIRCLE_TAG || true
docker tag $CIRCLE_PROJECT_REPONAME $DOCKER_IMAGE:latest || true
Expand Down

0 comments on commit 3689c48

Please sign in to comment.