Skip to content
This repository has been archived by the owner on Nov 19, 2020. It is now read-only.

Commit

Permalink
Merge branch 'master' of github.com:cf-platform-eng/bosh-azure-template
Browse files Browse the repository at this point in the history
  • Loading branch information
danhigham committed Aug 9, 2016
2 parents 0440e65 + 404d692 commit 2378455
Showing 1 changed file with 41 additions and 14 deletions.
55 changes: 41 additions & 14 deletions ci/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,33 @@ resources:
access_key_id: {{s3-access-key}}
secret_access_key: {{s3-secret}}

- name: s3-release-latest
type: s3
source:
bucket: {{s3-bucket}}
region_name: us-west-2
versioned_file: latest.tgz
access_key_id: {{s3-access-key}}
secret_access_key: {{s3-secret}}

- name: s3-release-version
type: s3
source:
bucket: {{s3-bucket}}
region_name: us-west-2
versioned_file: version.txt
access_key_id: {{s3-access-key}}
secret_access_key: {{s3-secret}}

- name: s3-release-bootstrap
type: s3
source:
bucket: {{s3-bucket}}
region_name: us-west-2
versioned_file: bootstrap.py
access_key_id: {{s3-access-key}}
secret_access_key: {{s3-secret}}

jobs:

- name: copy-bootstrap
Expand All @@ -38,14 +65,14 @@ jobs:
inputs:
- name: github-repo
outputs:
- name: s3-release
- name: s3-release-bootstrap
run:
path: sh
args: [ "-c", "cp github-repo/bootstrap.py s3-release" ]
- put: s3-release
args: [ "-c", "cp github-repo/bootstrap.py s3-release-bootstrap/bootstrap.py" ]
- put: s3-release-bootstrap
params:
from: s3-release/bootstrap.py
file: s3-release-bootstrap/bootstrap.py

- name: copy-release
plan:
- get: github-release
Expand All @@ -63,32 +90,32 @@ jobs:
args: [ "-c", "cp github-release/*.tgz s3-release" ]
- put: s3-release
params:
from: s3-release/.*\.tgz
file: s3-release/*.tgz
- task: copy-latest
config:
platform: linux
image: docker:///alpine
inputs:
- name: github-release
outputs:
- name: s3-release
- name: s3-release-latest
run:
path: sh
args: [ "-c", "cp github-release/*.tgz s3-release/latest.tgz" ]
- put: s3-release
args: [ "-c", "cp github-release/*.tgz s3-release-latest/latest.tgz" ]
- put: s3-release-latest
params:
from: s3-release/latest.tgz
file: s3-release-latest/latest.tgz
- task: save-version
config:
platform: linux
image: docker:///alpine
inputs:
- name: github-release
outputs:
- name: s3-release
- name: s3-release-version
run:
path: sh
args: [ "-c", "ls github-release/*.tgz | sed 's/github-release\\/.*-//' | sed 's/.tgz//' >s3-release/version.txt" ]
- put: s3-release
args: [ "-c", "ls github-release/*.tgz | sed 's/github-release\\/.*-//' | sed 's/.tgz//' >s3-release-version/version.txt" ]
- put: s3-release-version
params:
from: s3-release/version.txt
file: s3-release-version/version.txt

0 comments on commit 2378455

Please sign in to comment.