Skip to content

Instantly share code, notes, and snippets.

@karkranikhil
Last active July 27, 2019 15:05
Show Gist options
  • Select an option

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

Select an option

Save karkranikhil/3a98fd240f9b8370ac125b1c947d3621 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
workflows:
version: 2.1
build:
jobs:
- build:
filters:
branches:
only: master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment