groups: []
resources:
- name: config_source
  type: git
  source:
    uri: <repo>
    branch: concourse-test
    private_key: {{git_private_key}}
- name: aws-stemcell
  type: bosh-io-stemcell
  source:
    name: bosh-aws-xen-hvm-ubuntu-trusty-go_agent
- name: openstack-stemcell
  type: bosh-io-stemcell
  source:
    name: bosh-openstack-kvm-ubuntu-trusty-go_agent
- name: vsphere-stemcell
  type: bosh-io-stemcell
  source:
    name: bosh-vsphere-esxi-ubuntu-trusty-go_agent
- name: slack-notify
  type: slack-notification
  source:
    url: {{slack-url}}
resource_types:
- name: slack-notification
  type: docker-image
  source:
    repository: cfcommunity/slack-notification-resource
    tag: latest
jobs:
- name: update_release
  plan:
  - get: config_source
    trigger: true
  - task: update_release
    config:
      platform: linux
      image_resource:
        type: docker-image
        source: { repository: <image> }
      inputs:
      - name: config_source
      run:
        path: sh
        args:
        - ./ci/release-updater/scripts/update_release.sh
        dir: "config_source"
  - put: config_source
    params:
      - repository: config_source