Created
January 27, 2017 20:34
-
-
Save jim80net/7712506d2b727703455067ffa9e20a02 to your computer and use it in GitHub Desktop.
A concourse pipeline to push datadog config to various datadog accounts.
This file contains hidden or 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
--- | |
<%- environments = %W[ | |
staging | |
prod | |
gap-cfsandbox-openstack | |
gap-cfdev-openstack | |
gap-cfprod-openstack | |
tracker-aws | |
] -%> | |
groups: | |
- name: datadog-dashboard | |
jobs: | |
- dashboard-unit-tests | |
<%- environments.each do |env| -%> | |
- update-<%= env %> | |
<%- end -%> | |
jobs: | |
- name: dashboard-unit-tests | |
plan: | |
- get: repository | |
trigger: true | |
- get: cloudops-ci | |
trigger: false | |
- task: bundle_exec | |
file: cloudops-ci/concourse/tasks/bundle_exec.yml | |
params: | |
command: "rspec spec/*" | |
<%- environments.each_with_index do |env, index| -%> | |
- name: update-<%= env %> | |
plan: | |
- aggregate: | |
- get: repository | |
trigger: true | |
passed: [dashboard-unit-tests] | |
- { trigger: false, get: cloudops-ci } | |
- task: push-to-datadog | |
file: cloudops-ci/concourse/tasks/bundle_exec.yml | |
params: | |
command: "rake <%= env %>:push" | |
<%- end -%> | |
resources: | |
- name: repository | |
type: git | |
source: | |
uri: [email protected]:pivotal-cf/datadog-config.git | |
branch: master | |
private_key: {{ci_concourse_github_key}} | |
- name: cloudops-ci | |
type: git | |
source: | |
uri: [email protected]:pivotal-cloudops/cloudops-ci.git | |
branch: master | |
private_key: {{ci_concourse_github_key}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment