diff --git a/.travis.yml b/.travis.yml index 35b97f6d..53be1f2d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -49,15 +49,15 @@ branches: - master - /^shepherd\/.*$/ - /^dawn\/.*$/ + - /^devops\/.*$/ + - /^hibike\/.*$/ - /^runtime\/.*$/ - /^test\/.*$/ deploy: provider: script - script: - - pushd DevOps/pipeline - - pipenv run python3 pipeline.py -k piecentral-artifacts.pem -a "$APP_ID" -t "$TRAVIS_TAG" -d artifacts - - popd + script: bash DevOps/pipeline/deploy-artifacts.sh "$APP_ID" "$TRAVIS_TAG" "$(pwd)/artifacts" on: + branch: master tags: true condition: $DEPLOY_ARTIFACTS = 1 notifications: diff --git a/DevOps/pipeline/deploy-artifacts.sh b/DevOps/pipeline/deploy-artifacts.sh new file mode 100755 index 00000000..78be4060 --- /dev/null +++ b/DevOps/pipeline/deploy-artifacts.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +# Usage: bash DevOps/pipeline/artifacts-pipeline.sh "" "" "" + +pushd DevOps +pipenv install --dev +pushd pipeline +echo "Deploying artifacts for '$TRAVIS_TAG' ..." +pipenv run python3 pipeline.py -k piecentral-artifacts.pem -a "$1" -t "$2" -d "$3" +popd +popd