Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
docker
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ICNML
docker
Commits
6233b57b
Commit
6233b57b
authored
5 years ago
by
Marco De Donno
Browse files
Options
Downloads
Patches
Plain Diff
Update the CICD to deploy the develop branch to the developement host
parent
c4fe0b5f
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#1859
passed
5 years ago
Stage: build
Stage: push
Stage: deploy
Stage: clean
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+9
-5
9 additions, 5 deletions
.gitlab-ci.yml
with
9 additions
and
5 deletions
.gitlab-ci.yml
+
9
−
5
View file @
6233b57b
...
@@ -27,22 +27,26 @@ build:
...
@@ -27,22 +27,26 @@ build:
push
:
push
:
stage
:
push
stage
:
push
only
:
-
master
script
:
script
:
-
make push
-
make push
clean
:
clean
:
stage
:
clean
stage
:
clean
only
:
-
master
script
:
script
:
-
make clean
-
make clean
deploy
:
deploy
_master
:
stage
:
deploy
stage
:
deploy
only
:
only
:
-
master
-
master
script
:
script
:
-
echo Deploying production on ${PROD_HOST}...
-
echo Deploying production on ${PROD_HOST}...
-
docker -H ${PROD_HOST} service update --force --detach --image=$(docker inspect --format='{{index .RepoDigests 0}}' ${REGISTRY}/icnml_web) ${PROD_SERVICE_NAME}
-
docker -H ${PROD_HOST} service update --force --detach --image=$(docker inspect --format='{{index .RepoDigests 0}}' ${REGISTRY}/icnml_web) ${PROD_SERVICE_NAME}
deploy_develop
:
stage
:
deploy
only
:
-
develop
script
:
-
echo Deploying developement on ${DEV_HOST}...
-
docker -H ${DEV_HOST} service update --force --detach --image=$(docker inspect --format='{{index .RepoDigests 0}}' ${REGISTRY}/icnml_web) ${DEV_SERVICE_NAME}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment