Created
July 12, 2017 16:43
-
-
Save dewoods/9551b81ab441f36b63e37cb3b874dfa0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resources: | |
- name: s3object | |
type: s3 | |
source: | |
bucket: tackle.io-misc | |
regexp: cf-mock/artifact-(.*).txt | |
access_key_id: {{ cloud_credential.key_id }} | |
secret_access_key: {{ cloud_credential.access_key }} | |
jobs: | |
- name: bootstrap-terraform-state | |
plan: | |
- task: output | |
config: | |
platform: linux | |
image_resource: | |
type: docker-image | |
source: {repository: alpine} | |
run: | |
path: sh | |
args: | |
- -exc | |
- | | |
echo "bootstrap" > artifact/artifact-1.txt | |
outputs: | |
- name: artifact | |
- put: s3object | |
params: {file: artifact/artifact-1.txt} | |
- name: create-infrastructure | |
plan: | |
- get: s3object | |
trigger: false | |
passed: [bootstrap-terraform-state] | |
- task: output | |
config: | |
platform: linux | |
image_resource: | |
type: docker-image | |
source: {repository: alpine} | |
run: | |
path: sh | |
args: | |
- -exc | |
- | | |
cp s3object/artifact-1.txt artifact/artifact-1.txt | |
echo "create-infrastructure" >> artifact/artifact-1.txt | |
inputs: | |
- name: s3object | |
outputs: | |
- name: artifact | |
- put: s3object | |
params: {file: artifact/artifact-1.txt} | |
- name: configure-director | |
plan: | |
- get: s3object | |
trigger: false | |
passed: [create-infrastructure] | |
- task: output | |
config: | |
platform: linux | |
image_resource: | |
type: docker-image | |
source: {repository: alpine} | |
run: | |
path: sh | |
args: | |
- -exc | |
- | | |
echo "bla" > artifact/artifact-1.txt | |
outputs: | |
- name: artifact | |
- put: s3object | |
params: {file: artifact/artifact-1.txt} | |
- name: deploy-ert | |
plan: | |
- get: s3object | |
trigger: true | |
passed: [configure-director] | |
- task: output | |
config: | |
platform: linux | |
image_resource: | |
type: docker-image | |
source: {repository: alpine} | |
run: | |
path: sh | |
args: | |
- -exc | |
- | | |
echo "bla" > artifact/artifact-1.txt | |
outputs: | |
- name: artifact | |
- put: s3object | |
params: {file: artifact/artifact-1.txt} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment