github.com/jasonkeene/cli@v6.14.1-0.20160816203908-ca5715166dfb+incompatible/ci/cli/tasks/combine-binaries.yml (about)

     1  ---
     2  platform: linux
     3  image: docker:///cloudfoundry/cli-ci
     4  
     5  inputs:
     6  - name: cross-compiled
     7  - name: signed
     8  - name: osx-compiled
     9  
    10  outputs:
    11  - name: compiled
    12  
    13  run:
    14    path: bash
    15    args:
    16    - -c
    17    - |
    18      set -ex
    19  
    20      cwd=$PWD
    21  
    22      mkdir combined
    23  
    24      pushd cross-compiled
    25        tar -xzf *.tgz
    26        rm *.tgz
    27        mv * $cwd/combined
    28      popd
    29  
    30      pushd signed
    31        mv * $cwd/combined
    32        chmod 0755 $cwd/combined/cf-cli_win*
    33      popd
    34  
    35      pushd osx-compiled
    36        tar -xzf *.tgz
    37        rm *.tgz
    38        mv * $cwd/combined
    39      popd
    40  
    41      cd $cwd/combined
    42      tar -cvzf $cwd/compiled/cf-cli-binaries.tgz *