Deploying to Amazon Web Services S3

We support deployment to AWS S3 via the Amazon Command Line Interface. Simply add the following lines to your configuration:

build:
  environment:
    aws:
      key: 'YOUR AWS KEY'
      secret: 'YOUR AWS SECRET'
Tip: Define your access keys on the website and not in your .scrutinizer.yml so that they do not become part of your repository history.

If you want to configure the AWS CLI further you can add additional environment variables as described in the setting environment variables section.

You now have the complete AWS CLI at your disposal. Here is a small sample deployment script to make a tarball and deploy it to your S3 bucket.

build:
  nodes:
    deployment:
      requires:
        - branch: master         # you can use either the full branch name,
        - branch: /feature_.*/   # or a regular rexpression
        - node: tests

      commands:
        - checkout-code ~/build
        - tar -zcf archive.tar.gz build/
        - aws s3 cp archive.tar.gz s3://YOUR_BUCKET/archive-${SCRUTINIZER_SHA1}.tar.gz