---
platform: linux

image_resource:
  type: docker-image
  source:
    repository: cfcli/cli-package

inputs:
- name: cli
- name: edge-linux-binary-64

outputs:
- name: linux-binary-64

run:
  path: bash
  args:
  - -c
  - |
    set -ex

    VERSION=$(cat cli/BUILD_VERSION_V7)

    mv edge-linux-binary-64/cf7-cli_edge_linux_x86-64.tgz linux-binary-64/cf7-cli_${VERSION}_linux_x86-64.tgz

---
platform: linux

image_resource:
  type: docker-image
  source:
    repository: cfcli/cli-package

inputs:
- name: cli
- name: edge-linux-binary-64

outputs:
- name: linux-binary-64

run:
  path: bash
  args:
  - -c
  - |
    set -ex

    VERSION=$(cat cli/BUILD_VERSION_V7)

    mkdir linux-binary-64/v${VERSION}
    mv edge-linux-binary-64/cf7-cli_edge_linux_x86-64.tgz linux-binary-64/v${VERSION}/cf7-cli_${VERSION}_linux_x86-64.tgz

Add version directory to v7 beta release task
Add version directory to v7 beta release task

[#160740878]

Signed-off-by: Spencer Hawley <e415b91d38ec757f34997fde71ef08d6fc2baa2c@pivotal.io>
