.gitlab-ci.yml fix docker_deploy TYPE assignment

8 jobs for prod-client in 4 minutes and 55 seconds (queued for 2 seconds)
Status Job ID Name Coverage
  Test Tools
passed #184203
test_tools

00:00:05

 
  Test Quality
passed #184204
web
code_quality

00:00:09

 
  Test Unit
passed #184205
web
test_browser_unit

00:00:11

 
  Test Functional
passed #184206
web
test_browser-functional

00:02:35

 
  Test Functional External
passed #184210
web
test_browser-functional-external

00:01:37

failed #184207
web
test_browser-functional-external

00:01:34

 
  Deploy Prod
failed #184208
docker web allowed to fail manual
deploy_docker

00:00:06

passed #184209
web
deploy_prod

00:00:09

 
Name Stage Failure
failed
deploy_docker Deploy Prod
$ export CUR_DATE=`date +%Y-%m-%d`
$ export TYPE=`$CI_COMMIT_REF_NAME | awk '{ gsub(/prod-/, "") }{ print $1 }'`
bash: line 93: prod-client: command not found
$ 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
invalid argument "vidjil/:2018-10-18-22fb65b0" for t: Error parsing reference: "vidjil/:2018-10-18-22fb65b0" is not a valid repository/tag: invalid reference format
See 'docker build --help'.
ERROR: Job failed: exit status 1