Skip to content
Snippets Groups Projects
Commit 6233b57b authored by Marco De Donno's avatar Marco De Donno
Browse files

Update the CICD to deploy the develop branch to the developement host

parent c4fe0b5f
No related branches found
No related tags found
No related merge requests found
Pipeline #1859 passed
...@@ -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}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment