From 2394301b102ff1b1681715eddb2c94b457bd1f8a Mon Sep 17 00:00:00 2001 From: Manuel Friedli Date: Sun, 26 Jun 2016 22:20:30 +0200 Subject: [PATCH] first attempt at creating environments and some sophisticated CI stuff. --- .gitlab-ci.yml | 30 ++++++++++++++++++++++++++++++ deploy.sh | 4 ++++ 2 files changed, 34 insertions(+) create mode 100644 deploy.sh diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2abfa9d..7e54898 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,3 +1,7 @@ +stages: + - build + - deploy + Npm, Bower, Grunt: script: - npm install @@ -6,3 +10,29 @@ Npm, Bower, Grunt: tags: except: - tags + stage: build + artifacts: + paths: + - dist/ + - info/ + - resources/ + - index.html + - manifest.appcache + +staging: + stage: deploy + script: deploy.sh + environment: staging + only: + - develop + variables: + - ENVIRON: staging + +production: + stage: deploy + script: deploy.sh + environment: production + only: + - master + variables: + - ENVIRON: production diff --git a/deploy.sh b/deploy.sh new file mode 100644 index 0000000..d4124d5 --- /dev/null +++ b/deploy.sh @@ -0,0 +1,4 @@ +#!/bin/sh + +echo "Called deploy.sh for env ${ENVIRON}" +echo "If I were to perform real work, I'd be doing that now. But I'm not."