platform: linux
image: docker:///cloudfoundry/cli-ci

inputs:
- name: cli
  path: gopath/src/github.com/cloudfoundry/cli
- name: installers

params:
  GPG_KEY:
  KEY_ID:
  AWS_SECRET_ACCESS_KEY:
  AWS_ACCESS_KEY_ID:
  AWS_BUCKET_NAME: cf-cli-debian

run:
  path: bash
  args:
  - -c
  - |
    set -ex
    echo ${GPG_KEY}>gpg.key
    gpg --import gpg.key
    apt-get install ruby1.9.1
    gem install deb-s3

    tar -xvzf installers/cf-cli-installers.tgz -C cf-cli-installers
    deb-s3 upload cf-cli-installers/*.deb -p --sign=${KEY_ID} -b ${AWS_BUCKET_NAME}


platform: linux
image: docker:///cloudfoundry/cli-ci

inputs:
- name: cli-private
- name: cli
  path: gopath/src/github.com/cloudfoundry/cli
- name: installers

params:
  GPG_KEY:
  KEY_ID:
  AWS_SECRET_ACCESS_KEY:
  AWS_ACCESS_KEY_ID:
  AWS_BUCKET_NAME: cf-cli-debian

run:
  path: bash
  args:
  - -c
  - |
    set -ex
    gpg --import ./cli-private/ci/gpg_key/gpg.key
    apt-get install ruby1.9.1
    gem install deb-s3

    tar -xvzf installers/cf-cli-installers.tgz -C cf-cli-installers
    deb-s3 upload cf-cli-installers/*.deb -p --sign=${KEY_ID} -b ${AWS_BUCKET_NAME}


Use private repo to import gpg key
Use private repo to import gpg key

[#128036079]

Signed-off-by: Jeff Pak <9d750c79dc1952140f693c4bda214b11dba3d64d@emc.com>
