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:
...
@@ -83,8 +83,28 @@ aliases:
-
v1-build-
-
v1-build-
jobs
:
jobs
:
build
:
build
-staging
:
<<
:
*defaults
<<
:
*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
:
steps
:
-
*restore_git_cache
-
*restore_git_cache
-
checkout
-
checkout
...
@@ -162,21 +182,24 @@ jobs:
...
@@ -162,21 +182,24 @@ jobs:
workflows
:
workflows
:
build-test-deploy
:
build-test-deploy
:
jobs
:
jobs
:
-
build
:
-
build
-staging
:
filters
:
filters
:
branches
:
branches
:
only
:
only
:
-
circleci-project-setup
# remove this before releasing
-
circleci-project-setup
# remove this before releasing
-
develop
-
/^hotfix\/.*/
-
/^release\/.*/
-
deploy-staging
:
-
deploy-staging
:
requires
:
requires
:
-
build
-
build
-staging
filters
:
filters
:
branches
:
branches
:
only
:
only
:
-
circleci-project-setup
# remove this before releasing
-
circleci-project-setup
# remove this before releasing
-
develop
-
develop
-
hotfix/*
# make sure this syntax works. may need a regex
-
/^hotfix\/.*/
# make sure this syntax works. may need a regex
-
release/*
-
/^release\/.*/
-
integration-staging
:
-
integration-staging
:
requires
:
requires
:
-
deploy-staging
-
deploy-staging
...
@@ -185,5 +208,5 @@ workflows:
...
@@ -185,5 +208,5 @@ workflows:
only
:
only
:
-
circleci-project-setup
# remove this before releasing
-
circleci-project-setup
# remove this before releasing
-
develop
-
develop
-
hotfix/*
-
/^hotfix\/.*/
-
release/*
-
/^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