From 43f45121b4782282177dd3afd4f5c734ccd1142c Mon Sep 17 00:00:00 2001 From: Benjamin Bertrand <benjamin.bertrand@esss.se> Date: Wed, 26 Sep 2018 13:55:47 +0200 Subject: [PATCH] Separate both AWX jobs If the first one fails (unreachable node for example), the second script won't be run. Having 2 separate stages ensure both will always run. We might want to create a template to deploy on all nodes at the same time. --- .gitlab-ci.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 113fdb1f..24f559c0 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,7 +1,7 @@ stages: - deploy -deploy: +deploy-lcr: tags: - docker stage: deploy @@ -14,6 +14,15 @@ deploy: -J "deploy-cs-studio@lcr" --tags csstudio-ess-opis -e "csstudio_ess_opis_version=$CI_COMMIT_REF_NAME" --monitor + only: + - master@ics-software/ess-opis + +deploy-nx: + tags: + - docker + stage: deploy + image: registry.esss.lu.se/ics-docker/tower-cli:3.3 + script: - > tower-cli job launch -h torn.tn.esss.lu.se -- GitLab