From 9a2c22ec649de29fcf23104b5290979fbb29aed0 Mon Sep 17 00:00:00 2001 From: Manuel Friedli Date: Mon, 27 Jun 2016 00:00:20 +0200 Subject: [PATCH] added new environment for deploying branch builds --- .gitlab-ci.yml | 25 ++++++++++++++++++------- 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0abb58b..1ea35c7 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -27,17 +27,28 @@ build_job: cleanup_build_job: stage: cleanup_build script: - - rm -rf node_modules - - rm -rf bower_components - - rm -rf dist + - rm -rf node_modules + - rm -rf bower_components + - rm -rf dist when: on_failure +develop: + stage: deploy + script: deploy.sh + environment: develop + except: + - tags + - master + - develop + variables: + ENVIRON: develop + staging: stage: deploy script: deploy.sh environment: staging only: - - develop + - develop variables: ENVIRON: staging @@ -46,13 +57,13 @@ production: script: deploy.sh environment: production only: - - master + - master variables: ENVIRON: production cleanup_job: stage: cleanup script: - - rm -rf node_modules - - rm -rf bower_components + - rm -rf node_modules + - rm -rf bower_components when: always