Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
vidjil
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1,711
Issues
1,711
List
Boards
Labels
Service Desk
Milestones
Merge Requests
86
Merge Requests
86
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vidjil
vidjil
Commits
89e58b08
Commit
89e58b08
authored
Oct 12, 2018
by
Mathieu Giraud
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'docker_pre_deploy' into 'dev'
Docker pre deploy See merge request
!304
parents
74c7d926
65f87abc
Pipeline
#43955
failed with stages
in 8 minutes and 56 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
.gitlab-ci.yml
.gitlab-ci.yml
+11
-4
No files found.
.gitlab-ci.yml
View file @
89e58b08
...
...
@@ -23,7 +23,6 @@ stages:
-
valgrind_functional
-
multiple_tests
-
prepare_deploy
-
deploy_docker
-
deploy_prod
# Anchors
...
...
@@ -338,13 +337,21 @@ deploy_review:
-
web
deploy_docker
:
stage
:
deploy_
docker
stage
:
deploy_
prod
script
:
-
docker tag $CI_BUILD_REF_SLUG vidjil/vidjil:latest
-
docker push vidjil/vidjil:latest
-
export CUR_DATE=date +%Y-%m-%d
-
export TYPE=$CI_COMMIT_REF_NAME | awk '{ gsub(/prod-/, "") }{ print $1 }'
-
export TAG="vidjil/$TYPE:$CI_COMMIT_SHA-$CUR_DATE"
-
docker build --no-cache --build-arg git_branch=$CI_COMMIT_REF_NAME --build-arg build_env=PRODUCTION -t $TAG docker/vidjil-$TYPE
-
docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
-
docker push $TAG
-
docker tag $TAG "vidjil/$TYPE:latest"
-
docker push "vidjil/$TYPE:latest"
-
docker rmi $TAG "vidjil/$TYPE:latest"
when
:
manual
only
:
-
prod-server
-
prod-client
tags
:
-
web
-
docker
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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