Skip to content

armgit / core

Public Imported from GitHub
0

100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps

Allow manual deploy when tests fail

Michal Rutkaa16dd5a2a082
diff --git a/gitlab-ci/gitlab-ci-submodule.yml b/gitlab-ci/gitlab-ci-submodule.yml
index e95860547..81db0036f 100644
--- a/gitlab-ci/gitlab-ci-submodule.yml
+++ b/gitlab-ci/gitlab-ci-submodule.yml
@@ -257,6 +257,18 @@ deploy staging:
url: https://${CI_ENVIRONMENT_SLUG}.${PROJECT_NAME}.${DOMAIN}
<<: *deploy_definition
+deploy staging when tests fail:
+ stage: deploy
+ needs: ["email failed tests"]
+ when: manual
+ variables:
+ DEPLOYMENT_HOST: ${CI_ENVIRONMENT_SLUG}.${PROJECT_NAME}.${DOMAIN}
+ SETUP_WIPE_CLEAN_INSTALL: "true"
+ environment:
+ name: staging
+ url: https://${CI_ENVIRONMENT_SLUG}.${PROJECT_NAME}.${DOMAIN}
+ <<: *deploy_definition
+
deploy staging FAILED:
stage: notify_deploy_staging_fail
needs: ["deploy staging"]