Commit 22fb65b0 authored by Ryan Herbert's avatar Ryan Herbert

.gitlab-ci.yml fix docker_deploy TYPE assignment

parent 2bf8e676
Pipeline #44766 passed with stages
in 4 minutes and 55 seconds
......@@ -342,7 +342,7 @@ deploy_docker:
stage: deploy_prod
script:
- export CUR_DATE=`date +%Y-%m-%d`
- export TYPE=$CI_COMMIT_REF_NAME | awk '{ gsub(/prod-/, "") }{ print $1 }'
- export TYPE=`$CI_COMMIT_REF_NAME | awk '{ gsub(/prod-/, "") }{ print $1 }'`
- export SHA=`echo $CI_COMMIT_SHA | awk '{ print substr($0, 0, 8) }'`
- export TAG="vidjil/$TYPE:$CUR_DATE-$SHA"
- docker build --no-cache --build-arg git_branch=$CI_COMMIT_REF_NAME --build-arg build_env=PRODUCTION -t $TAG docker/vidjil-$TYPE
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment