Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Menu
Open sidebar
Minds
Minds Backend - Engine
Commits
fab79916
Commit
fab79916
authored
Jun 27, 2019
by
Mark Harding
Browse files
(feat): allow for staging environments to be decided
-subdomain: sgtpepper
parent
19bd3740
Pipeline
#68315190
passed with stages
in 6 minutes and 34 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
fab79916
...
...
@@ -7,6 +7,7 @@ stages:
-
build
-
test
-
prepare
-
staging
-
deploy
cache
:
...
...
@@ -56,6 +57,27 @@ 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
:
variables
:
-
$CI_COMMIT_MESSAGE =~ /-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
:
variables
:
-
$CI_COMMIT_MESSAGE =~ /-subdomain/
deploy:fpm:
stage
:
deploy
image
:
minds/ci:latest
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment