Pipeline which create cached buildpack for cloud foundry when a new version of buildpack has been released and deploy it to storage system (default to s3).
The default pipeline use an s3 on aws as the storage system, see customize section to use different system
- clone this repo
- Create a
creds.yml
with this content
s3_bucket: my_s3_bucket
s3_access_key_id: my-s3-access-key-id
s3_secret_access_key: my-s3-access-key
github-access-token: my-github-token # this is needed only for java buildpack which has different build system
- Log to concourse (e.g.:
fly -t target login -c https://my.concourse.ci/
) - Send the pipeline:
fly -t target set-pipeline -c pipeline.yml -p cached-buildpacks-creation -l creds.yml
- Unpause it:
fly -t target up -p cached-buildpacks-creation
There is some operators files which has been provided for this pipeline.
To use them, you will need the bosh cli v2 for its command interpolate
.
Add notification about failure and success when a deploy has been triggered.
Command: bosh interpolate pipeline.yml -o operators/slack-notify.yml
Credentials:
slack-hook-url
: The webhook URL as provided by Slack or Mattermost.
Use a different s3 endpoint to send your cached buildpack (default on AWS S3).
Command: bosh interpolate pipeline.yml -o operators/custom-s3.yml
Credentials:
s3_endpoint
: New s3 endpoint.
Use artifactory instead of s3 to store your cached buildpack.
Command: bosh interpolate pipeline.yml -o operators/artifactory.yml
Credentials:
artifactory-url
: Url to Artifactory.artifactory-username
: Artifactory username to push your buildpack.artifactory-password
: Artifactory password to push your buildpack.
Add a job to trigger all other jobs
Command: bosh interpolate pipeline.yml -o operators/add-trigger-all-jobs.yml
By default, concourse only detects latest versions of buildpacks, use this operator to detect previous version.
Command: bosh interpolate pipeline.yml -o operators/detect-previous-versions.yml
Credentials:
concourse-url
: Url to Concourse.concourse-username
: Concourse username to allow job triggering.concourse-password
: Concourse password to allow job triggering.concourse-insecure
: Skip SSL certificate checksgo-buildpack-version
: Check buildpack from this versionjava-buildpack-version
: Check buildpack from this versiondotnet-core-buildpack-version
: Check buildpack from this versionbinary-buildpack-version
: Check buildpack from this versionnodejs-buildpack-version
: Check buildpack from this versionphp-buildpack-version
: Check buildpack from this versionpython-buildpack-version
: Check buildpack from this versionruby-buildpack-version
: Check buildpack from this versionstaticfile-buildpack-version
: Check buildpack from this version