---
image_resource:
  type: docker-image
  source: { repository: c2cnetworking/deploy }

platform: linux

inputs:
- name: cf-networking

outputs:
- name: tarballs

run:
  path: bash
  args:
  - -c
  - |
    cd cf-networking && bosh create-release --tarball=../tarballs/${RELEASE_NAME}.tgz --name $RELEASE_NAME --timestamp-version
params:
  RELEASE_NAME: cf-networking

---
image_resource:
  type: docker-image
  source: { repository: c2cnetworking/deploy }

platform: linux

inputs:
- name: cf-networking
- name: version

outputs:
- name: tarballs

run:
  path: bash
  args:
  - -c
  - |
    cd cf-networking && bosh create-release --tarball=../tarballs/${RELEASE_NAME}-$(cat ../version/number).tgz --name $RELEASE_NAME --timestamp-version
params:
  RELEASE_NAME: cf-networking

Add version number to release candiate tarball
Add version number to release candiate tarball

Signed-off-by: David McClure <f2d486abbc9bad1727caf3ba835e0fcc02bb2355@pivotal.io>
