Commit 98d91792 authored by Mark Harding's avatar Mark Harding
Browse files

(feat): allow for staging environments to be decided

-subdomain: sgtpepper
parent 19bd3740
Pipeline #68314301 canceled with stages
in 1 minute and 55 seconds
......@@ -7,6 +7,7 @@ stages:
- build
- test
- prepare
- staging
- deploy
cache:
......@@ -56,6 +57,25 @@ prepare:runners:
environment:
name: staging
staging:start:
stage: staging
image: minds/ci:latest
script:
- STAGING_SUBDOMAIN=$(echo $CI_COMMIT_MESSAGE | awk -F'-subdomain:' '{print $2}')
- echo "Subdomain will be setup at $STAGING_SUBDOMAIN"
only:
- /-subdomain/
staging:stop:
stage: staging
image: minds/ci:latest
script:
- STAGING_SUBDOMAIN=$(echo $CI_COMMIT_MESSAGE | awk -F'-subdomain:' '{print $2}')
- echo "TODO tear down $STAGING_SUBDOMAIN"
when: manual
only:
- /-subdomain/
deploy:fpm:
stage: deploy
image: minds/ci:latest
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment