Concourse common tasks
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.codeclimate.yml
CONTRIBUTING.md
LICENSE.md
README.md
bosh-errand.sh
bosh-errand.yml
decrypt.sh
decrypt.yml
diff-templates.rb
diff-templates.sh
diff-templates.yml
display.sh
display.yml
encrypt.sh
encrypt.yml
ensure-service.sh
ensure-service.yml
finalize-bosh-release.sh
finalize-bosh-release.yml
generate_key.sh
inflate.sh
inflate.yml
inspect.sh
inspect.yml
lint-manifest.sh
lint-manifest.yml
register-service-broker-sandboxes.yml
register-service-broker.sh
register-service-broker.yml
terraform-apply.sh
terraform-apply.yml
terraform-destroy.sh
terraform-destroy.yml
terraform-state-to-yaml.rb
terraform-state-to-yaml.sh
terraform-state-to-yaml.yml
uaa-smoke-tests.py
uaa-smoke-tests.sh
uaa-smoke-tests.yml
upload-release.sh
upload-release.yml
write_file.sh
write_file.yml

README.md

cloud.gov common Concourse pipeline tasks

This repo contains the source for some common concourse.ci pipeline tasks.

To include in your pipeline, define a resource named pipeline-tasks:

resources:

...

- name: pipeline-tasks
  type: git
  source:
    uri: {{pipeline-tasks-git-url}}
    branch: {{pipeline-tasks-git-branch}}

Add pipeline-tasks-git-url and pipeline-tasks-git-branch to your credentials.yml:

---
pipeline-tasks-git-url: https://github.com/18F/cg-pipeline-tasks.git
pipeline-tasks-git-branch: master

Task usage

bosh-errand

decrypt

display

encrypt

finalize-bosh-release

inspect

spiff-merge

terraform-apply

terraform-destroy

terraform-state-to-yaml

Reads a terraform state file to get the terraform outputs and converts to yaml for use in spiff merging into other BOSH templates.

Requires:

  • STATE_FILE: The terraform state file

Outputs:

  • terraform-yaml/state.yml
  - get: my-other-manifest-bits
  - get: s3-terraform-state
  - get: pipeline-tasks
  - task: terraform-yaml
    file: pipeline-tasks/terraform-state-to-yaml.yml
    params:
      STATE_FILE: s3-terraform-state/terraform.tfstate
 - task: generate-manifest
    file: pipeline-tasks/spiff-merge.yml
    config:
      inputs:
        - name: pipeline-tasks
        - name: my-other-manifest-bits
      params:
        OUTPUT_FILE: spiff-merge/manifest.yml
        SOURCE_FILE: my-other-manifest-bits/manifest.yml
        MERGE_FILES: terraform-yaml/state.yml

upload-release

write-file