Skip to content

Instantly share code, notes, and snippets.

@juniorb2ss
Created December 26, 2016 22:07
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save juniorb2ss/69ca2b0fa39094fef825df4936ae3d69 to your computer and use it in GitHub Desktop.
Save juniorb2ss/69ca2b0fa39094fef825df4936ae3d69 to your computer and use it in GitHub Desktop.
# This is a sample build configuration for Javascript.
# Check our guides at https://confluence.atlassian.com/x/VYk8Lw for more examples.
# Only use spaces to indent your .yml configuration.
# -----
# You can specify a custom docker image from Docker Hub as your build environment.
image: node:6.9.2
pipelines:
branches:
master:
- step:
script:
- apt-get update
- python --version
- apt-get -y install python-dev
- apt-get -y install python-pip
- pip install awscli
- pip --help
- aws --version
- aws --region us-east-1 s3 sync . s3://bitbucket-pipeline-example --acl public-read --exclude ".git/*" --exclude ".config" --exclude ".npm" --exclude "node_modules" --exclude "deploy-loca.sh" --exclude "bitbucket-pipelines.yml"
#- aws configure set preview.cloudfront true
#- aws cloudfront create-invalidation --distribution-id E2GGIDEF1PPNTQ --paths /*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment