---
platform: linux
image_resource:
  type: registry-image
  source:
    repository: gcr.io/data-gpdb-public-images/gpdb7-centos7-test
    tag: latest

inputs:
- name: gpdb_src

outputs:
- name: server_tar

params:
  RC_BUILD_TYPE_GCS:

run:
  path: bash
  args:
  - -ec
  - |
    server_version="$(./gpdb_src/getversion --short)"
    echo "Creating a tarball of the source git repo"
    tar -czf "server_tar/server-src-rc-${server_version}${RC_BUILD_TYPE_GCS}.tar.gz" gpdb_src

---
platform: linux
image_resource:
  type: registry-image
  source:
    repository: gcr.io/data-gpdb-public-images/gpdb7-centos7-test
    tag: latest

inputs:
- name: gpdb_src

outputs:
- name: server_tar

params:
  RC_BUILD_TYPE_GCS:

run:
  path: bash
  args:
  - -ec
  - |
    server_version="$(./gpdb_src/getversion --short)"
    echo "Creating a tarball of the source git repo"
    tar -czf "server_tar/server-src-rc-${server_version}${RC_BUILD_TYPE_GCS}.tar.gz" -C gpdb_src .

Remove extra layer in RC source code
7X: Remove extra layer in RC source code

Authored-by: Bhanu Kiran Atturu <34831a3875dd5a8cf54ac898700bb048083d00cc@vmware.com>
