Skip to content

Instantly share code, notes, and snippets.

@karkranikhil
Created July 28, 2019 02:55
Show Gist options
  • Select an option

  • Save karkranikhil/e14a15f6927e063cd042ea3b8bec0c2d to your computer and use it in GitHub Desktop.

Select an option

Save karkranikhil/e14a15f6927e063cd042ea3b8bec0c2d to your computer and use it in GitHub Desktop.
version: 2.1
orbs:
aws-s3: circleci/aws-s3@1.0.4
jobs:
build:
docker:
- image: circleci/python:2.7-node
environment:
AWS_REGION: ap-southeast-2
steps:
- checkout
- run: npm install
- run: npm run build
- aws-s3/sync:
from: build
to: 's3://ci-cd-workflow/'
arguments: |
--acl public-read \
--cache-control "max-age=86400" \
overwrite: true
test:
docker:
- image: circleci/python:2.7-node
steps:
- checkout
- run: npm install
- run: npm run test
workflows:
version: 2.1
build:
jobs:
- build:
filters:
branches:
only: master
test:
jobs:
- test:
filters:
branches:
only: master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment