Skip to content
Next
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Minds Backend - Engine
Project
Project
Details
Activity
Releases
Dependency List
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
164
Issues
164
List
Boards
Labels
Service Desk
Milestones
Merge Requests
49
Merge Requests
49
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Minds Backend - Engine
Commits
fab79916
Commit
fab79916
authored
4 hours ago
by
Mark Harding
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(feat): allow for staging environments to be decided
-subdomain: sgtpepper
parent
19bd3740
test/gitlab-ci-docker-images
No related merge requests found
Pipeline
#68315190
passed with stages
in 6 minutes and 34 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
.gitlab-ci.yml
.gitlab-ci.yml
+22
-0
No files found.
.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
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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