Skip to content

armgit / core

Public Imported from GitHub
0

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

Added retry to deploy-demo

Michal Rutka9f4379f8da62
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 66d5e2e21..656ad23c1 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -161,6 +161,8 @@ build-master:
- keycloak_${CI_ENVIRONMENT_SLUG}.log
- postgresql_${CI_ENVIRONMENT_SLUG}.log
expire_in: 1 week
+ retry:
+ max: 2
# This step is executed when build fails. The purpose is to e-mail a git commiter about the problem.
email failed build:
@@ -200,12 +202,12 @@ deploy demo on OVH:
stage: deploy_ovh
allow_failure: true
rules:
- - if: $CI_COMMIT_BRANCH == "master"
- if: $CI_COMMIT_MESSAGE !~ /skip-deploy/
- when: manual
- if: $CI_COMMIT_BRANCH == "master"
if: $CI_COMMIT_MESSAGE =~ /deploy-demo/
when: on_success
+ - if: $CI_COMMIT_BRANCH == "master"
+ if: $CI_COMMIT_MESSAGE !~ /skip-deploy/
+ when: manual
variables:
DEPLOYMENT_HOST: ${PROJECT_NAME}.openremote.io
SETUP_WIPE_CLEAN_INSTALL: 'true'