From b15d576e48eccffccabf5105b6a7a44e41747da7 Mon Sep 17 00:00:00 2001 From: Benjamin Bertrand <benjamin.bertrand@esss.se> Date: Tue, 6 Feb 2018 11:25:21 +0100 Subject: [PATCH] Add deploy to staging Every tagged release is automatically deployed to staging by launching the job template from Ansible AWX --- .gitlab-ci.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f97228e..d36c4bf 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -16,6 +16,7 @@ stages: - build - test - release + - deploy before_script: - docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY @@ -53,3 +54,15 @@ release-image: - docker push "$CONTAINER_RELEASE_IMAGE" only: - 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 -- GitLab