From f0e45b6c332533cc5867eef06ecc2324e5c8bc22 Mon Sep 17 00:00:00 2001 From: Vladimir Volek Date: Thu, 25 Oct 2018 14:47:39 +0200 Subject: [PATCH] Prepare gitlab configs --- .gitlab-ci.yml | 34 +++++++++++++++++++++++++++++++--- 1 file changed, 31 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 39a4de52..2ba88ca3 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -40,17 +40,15 @@ build beta: stage: build script: - yarn run build:beta - when: manual artifacts: expire_in: 1 month paths: - build/beta -build production: +build stable: stage: build script: - yarn run build:stable - when: manual artifacts: expire_in: 1 month paths: @@ -73,3 +71,33 @@ deploy review: - branches tags: - deploy + +deploy stage beta: + stage: deploy + variables: + GIT_STRATEGY: none + when: + - manual + dependencies: + - build beta + script: + - echo "Deploy staging beta version" + only: + - beta + tags: + - deploy + +deploy stage stable: + stage: deploy + variables: + GIT_STRATEGY: none + when: + - manual + dependencies: + - build stable + script: + - echo "Deploy staging stable version" + only: + - stable + tags: + - deploy