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:
    deployment:
        -
            branch: master          # you can use either the full branch name,
            branch: feature_*       # an asterisc for e.g. any feature branches
            branch: /feature_.*/    # or the same as a regular expression
            commands:
                - tar -zcf archive.tar.gz src/
                - aws s3 cp archive.tar.gz s3://YOUR_BUCKET/archive-${SCRUTINIZER_SHA1}.tar.gz