Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vidjil
vidjil
Commits
f959661a
Commit
f959661a
authored
Oct 18, 2018
by
Ryan Herbert
Browse files
.gitlab-ci.yml docker TYPE you have to echo it...
parent
22fb65b0
Pipeline
#44769
passed with stages
in 7 minutes and 9 seconds
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
f959661a
...
...
@@ -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=`
echo
$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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment