Skip to content

Commit

Permalink
One more regex change to get the tags right for our hero
Browse files Browse the repository at this point in the history
Signed-off-by: Jesse Bowling <[email protected]>
  • Loading branch information
Jesse Bowling committed May 28, 2019
1 parent dbe8bbc commit c637c86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ deploy_dockerhub:
- sudo docker login -u "gitlab-ci-token" -p "${CI_BUILD_TOKEN}" ${CI_REGISTRY}
- sudo docker pull ${CI_APPLICATION_REPOSITORY}:${CI_APPLICATION_TAG}
- sudo docker logout
- export DOCKER_TAG=$(echo $CI_BUILD_REF_NAME | sed -E 's/^v?([[:digit:]]+(.[[:digit:]]+){1,2}|latest)$/\1/g')
- export DOCKER_TAG=$(echo $CI_BUILD_REF_NAME | sed -E 's/^v?([[:digit:]]+(.[[:digit:]]+){1,2}(-pre)?|latest)$/\1/g')
- export PROJECT_PATH=$(echo ${CI_PROJECT_PATH} | tr '[:upper:]' '[:lower:]')
- env
- echo docker tag ${CI_APPLICATION_REPOSITORY}:${CI_APPLICATION_TAG} ${PROJECT_PATH}:$DOCKER_TAG
Expand Down

0 comments on commit c637c86

Please sign in to comment.