diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2dcd8d0f763f2ac277cea8870845ce2509be294f..ec17fbf1916a62fe29d24212eae5f2ebb1f7af03 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -85,3 +85,23 @@ pages: # Don't forget to update if not only deploying docs for tags only: - tags + +deploy-production: + <<: *runner_tags + stage: deploy + image: registry.esss.lu.se/ics-docker/tower-cli:3.2 + before_script: [] + script: + - > + tower-cli job launch + -h icsv-awx01.esss.lu.se + -u ${ANSIBLE_AWX_USERNAME} + -p ${ANSIBLE_AWX_PASSWORD} + -J deploy-csentry + -e "csentry_tag=$CI_COMMIT_TAG" --monitor + environment: + name: production + url: https://csentry.esss.lu.se + only: + - tags + when: manual