Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
scratch-www
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
scratch-www
Commits
4bc3254f
Commit
4bc3254f
authored
Nov 09, 2020
by
BryceLTaylor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
circleCI config split build to -staging and -production. add env variables.
parent
534c60bf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
7 deletions
+30
-7
.circleci/config.yml
.circleci/config.yml
+30
-7
No files found.
.circleci/config.yml
View file @
4bc3254f
...
...
@@ -83,8 +83,28 @@ aliases:
-
v1-build-
jobs
:
build
:
build
-staging
:
<<
:
*defaults
environment
:
<<
:
*environment
<<
:
*env_staging
steps
:
-
*restore_git_cache
-
checkout
-
*restore_npm_cache
-
run
:
name
:
"
Run
npm
test
to
build"
command
:
|
npm --production=false ci
npm run test
-
*save_npm_cache
-
*save_git_cache
-
*save_build_cache
build-production
:
<<
:
*defaults
environment
:
<<
:
*environment
# <<: *env_production
steps
:
-
*restore_git_cache
-
checkout
...
...
@@ -162,21 +182,24 @@ jobs:
workflows
:
build-test-deploy
:
jobs
:
-
build
:
-
build
-staging
:
filters
:
branches
:
only
:
-
circleci-project-setup
# remove this before releasing
-
develop
-
/^hotfix\/.*/
-
/^release\/.*/
-
deploy-staging
:
requires
:
-
build
-
build
-staging
filters
:
branches
:
only
:
-
circleci-project-setup
# remove this before releasing
-
develop
-
hotfix/*
# make sure this syntax works. may need a regex
-
release/*
-
/^hotfix\/.*/
# make sure this syntax works. may need a regex
-
/^release\/.*/
-
integration-staging
:
requires
:
-
deploy-staging
...
...
@@ -185,5 +208,5 @@ workflows:
only
:
-
circleci-project-setup
# remove this before releasing
-
develop
-
hotfix/*
-
release/*
-
/^hotfix\/.*/
-
/^release\/.*/
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