Skip to content

armgit / core

Public Imported from GitHub
0

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

Added email failed deploy staging job

Michal Rutkaf72d3714a01d
diff --git a/gitlab-ci/gitlab-ci-submodule.yml b/gitlab-ci/gitlab-ci-submodule.yml
index b47abe66f..c41b966c7 100644
--- a/gitlab-ci/gitlab-ci-submodule.yml
+++ b/gitlab-ci/gitlab-ci-submodule.yml
@@ -269,6 +269,12 @@ deploy staging when tests fail:
url: https://${CI_ENVIRONMENT_SLUG}.${PROJECT_NAME}.${DOMAIN}
<<: *deploy_definition
+email failed deploy staging:
+ stage: notify_deploy_staging_fail
+ needs: ["deploy staging"]
+ <<: *notify_email
+ when: on_failure
+
deploy staging FAILED:
stage: notify_deploy_staging_fail
needs: ["deploy staging"]