set-pipeline.sh 349 B

12345678910111213
  1. #!/usr/bin/env bash
  2. set -euo pipefail
  3. CI_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
  4. config=$(mktemp)
  5. dhall-to-json --file "$CI_DIR/pipeline.dhall" \
  6. | jq '.resources = (.resources|unique)' \
  7. | jq '.resource_types = (.resource_types|unique)' >"$config"
  8. fly -t gdn set-pipeline -p dhall-concourse -c "$config"