Skip to content
Snippets Groups Projects
Commit b15d576e authored by Benjamin Bertrand's avatar Benjamin Bertrand
Browse files

Add deploy to staging

Every tagged release is automatically deployed to staging
by launching the job template from Ansible AWX
parent 0f1af084
No related branches found
No related tags found
No related merge requests found
...@@ -16,6 +16,7 @@ stages: ...@@ -16,6 +16,7 @@ stages:
- build - build
- test - test
- release - release
- deploy
before_script: before_script:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY - docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
...@@ -53,3 +54,15 @@ release-image: ...@@ -53,3 +54,15 @@ release-image:
- docker push "$CONTAINER_RELEASE_IMAGE" - docker push "$CONTAINER_RELEASE_IMAGE"
only: only:
- tags - tags
deploy-staging:
<<: *runner_tags
stage: deploy
before_script:
- apk add --update curl
- curl -s -o /tmp/functions.sh ${ICS_SHARED_GITLAB_CI_FUNCTIONS}
- . /tmp/functions.sh
script:
- launch_job_template deploy-csentry-staging
only:
- tags
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