github.com/jenspinney/cli@v6.42.1-0.20190207184520-7450c600020e+incompatible/ci/infrastructure/tasks/upload-edge-capi.yml (about)

     1  platform: linux
     2  
     3  image_resource:
     4    type: docker-image
     5    source:
     6      repository: relintdockerhubpushbot/cf-deployment-concourse-tasks
     7  
     8  inputs:
     9    - name: cli-ci
    10    - name: bbl-state
    11    - name: release-tarball
    12    # Input mapping to directory containing .tgz files
    13  
    14  run:
    15    path: bash
    16    args:
    17      - -c
    18      - |
    19        set -eu
    20  
    21        function setup_bosh_env_vars() {
    22          pushd "bbl-state/${BBL_STATE_DIR}"
    23            eval "$(bbl print-env)"
    24          popd
    25        }
    26  
    27        function upload_release() {
    28          for filename in release-tarball/*.tgz; do
    29            bosh upload-release --sha2 "$filename"
    30          done
    31        }
    32  
    33        function main() {
    34          setup_bosh_env_vars
    35          upload_release
    36        }
    37  
    38        main
    39  
    40  params:
    41    BBL_STATE_DIR:
    42    # - Optional
    43    # - Path to the directory containing the `bbl-state.json` file
    44    # - The path is relative to root of the `bbl-state` input
    45    # - If unspecified, uses the root of the `bbl-state` input