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
Goethes Farbenlehre
gfl-app-new
Commits
02830ed6
Commit
02830ed6
authored
Dec 02, 2021
by
asajedi
Browse files
Merge branch 'setupCICDForLiveServer' into 'master'
Set up CI/CD for live server See merge request
!57
parents
23fc4118
b8a0cddd
Pipeline
#255016
failed with stages
in 16 minutes
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
02830ed6
...
...
@@ -30,6 +30,17 @@ build_image:
only
:
-
master
build_liveimage
:
stage
:
build
script
:
-
docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
-
docker build -t $IMAGE_TAG .
-
docker tag $IMAGE_TAG $CI_REGISTRY_IMAGE:live
-
docker push $IMAGE_TAG
-
docker push $CI_REGISTRY_IMAGE:live
only
:
-
tags
deploy_dev
:
stage
:
deploy
environment
:
...
...
@@ -40,5 +51,15 @@ deploy_dev:
-
scp -r ./solr/* $DEV_SSH_LOGIN:$DEV_SOLR_FILES_PATH
-
ssh $DEV_SSH_LOGIN "$DEV_START_SCRIPT"
deploy_live
:
stage
:
deploy
environment
:
name
:
live
only
:
-
tags
script
:
-
scp -r ./solr/* $LIVE_SSH_LOGIN:$LIVE_SOLR_FILES_PATH
-
ssh $LIVE_SSH_LOGIN "$LIVE_START_SCRIPT"
services
:
-
docker:dind
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