2016-03-11 05:59:20 +01:00
|
|
|
# Pipeline that clones this repository, then uploads it to S3. Local usage:
|
|
|
|
#
|
2016-03-11 06:02:20 +01:00
|
|
|
# fly set-pipeline -t lite -n -c test/pipeline.yml -p s3-resource-simple-test -v access_key_id=<key> -v secret_access_key=<secret> -v aws-bucket=<bucket>
|
2016-03-11 05:59:20 +01:00
|
|
|
bucket: {{aws-bucket}}
|
|
|
|
#
|
|
|
|
resource_types:
|
|
|
|
- name: s3-upload
|
|
|
|
type: docker-image
|
|
|
|
source:
|
|
|
|
repository: 18fgsa/s3-resource-simple
|
|
|
|
resources:
|
|
|
|
- name: scripts
|
|
|
|
type: git
|
|
|
|
source:
|
|
|
|
uri: https://github.com/18F/s3-resource-simple
|
|
|
|
branch: master
|
|
|
|
- name: s3-bucket
|
|
|
|
type: s3-upload
|
|
|
|
source:
|
|
|
|
access_key_id: {{aws-access-key}}
|
|
|
|
secret_access_key: {{aws-secret-key}}
|
|
|
|
bucket: {{aws-bucket}}
|
|
|
|
jobs:
|
|
|
|
- name: custom-resource-example
|
|
|
|
plan:
|
|
|
|
- get: scripts
|
|
|
|
- put: s3-bucket
|