-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/department-of-veterans-af…
- Loading branch information
Showing
4 changed files
with
88 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# Use the latest 2.1 version of CircleCI pipeline process engine. See: https://circleci.com/docs/2.0/configuration-reference | ||
version: 2.1 | ||
# Use a package of configuration called an orb. | ||
orbs: | ||
aws-cli: circleci/[email protected] | ||
|
||
jobs: | ||
build-deploy: | ||
docker: | ||
- image: cimg/ruby:2.7.2-node | ||
environment: | ||
AWS_DEFAULT_REGION: us-gov-west-1 | ||
parameters: | ||
bucket: | ||
type: string | ||
|
||
steps: | ||
- checkout | ||
- aws-cli/setup | ||
- run: yarn install | ||
# If this works, think about adding it to the Gemfile | ||
- run: gem install bundler:1.16.6 | ||
- run: bundle install | ||
- run: yarn build | ||
- run: bundle exec jekyll build | ||
- run: aws s3 sync _site s3://<< parameters.bucket >> --acl public-read | ||
|
||
# Orchestrate or schedule a set of jobs | ||
workflows: | ||
deploy-dev: | ||
jobs: | ||
- build-deploy: | ||
# Set the bucket parameter to be the dev bucket | ||
bucket: "dev-design.va.gov" | ||
filters: | ||
branches: | ||
only: master | ||
context: | ||
# The Platform context has the environment variables for setting up the aws cli | ||
- Platform | ||
deploy-staging: | ||
jobs: | ||
- build-deploy: | ||
# Set the bucket parameter to be the staging bucket | ||
bucket: "staging-design.va.gov" | ||
filters: | ||
branches: | ||
only: master | ||
context: | ||
# The Platform context has the environment variables for setting up the aws cli | ||
- Platform |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.