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."