Skip to content

Commit

Permalink
Fixed tag naming with dockerhub builds
Browse files Browse the repository at this point in the history
  • Loading branch information
dabeeeenster committed Mar 11, 2021
1 parent b3ee90e commit cb5f4bb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ build-dockerhub:
- flagsmith-shell-runner
script:
- if [ "$CI_COMMIT_REF_NAME" == "master" ]; then IMAGE_TAG="latest"; else IMAGE_TAG=$CI_COMMIT_REF_SLUG; fi
- if [ "$CI_COMMIT_REF_NAME" == "master" ]; then IMAGE_TAG="latest"; elif [ "$CI_COMMIT_REF_NAME" == "develop" ]; then IMAGE_TAG="develop"; else IMAGE_TAG=$CI_COMMIT_TAG; fi
- echo $CI_COMMIT_REF_NAME > $CI_PROJECT_DIR/src/CI_COMMIT_REF_NAME
- echo $CI_COMMIT_SHA > $CI_PROJECT_DIR/src/CI_COMMIT_SHA
- echo $IMAGE_TAG > $CI_PROJECT_DIR/src/IMAGE_TAG
Expand Down

0 comments on commit cb5f4bb

Please sign in to comment.