Skip to content
This repository has been archived by the owner on Jul 6, 2020. It is now read-only.

Commit

Permalink
Pipeline fixes (#630)
Browse files Browse the repository at this point in the history
* Added seperate deploy-artifacts script

* Testing pipeline upload

* Revert test

* Fixed deploy-artifacts usage
  • Loading branch information
jonathan-j-lee authored Oct 13, 2018
1 parent 52162a1 commit d9feb0f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
11 changes: 11 additions & 0 deletions DevOps/pipeline/deploy-artifacts.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash

# Usage: bash DevOps/pipeline/artifacts-pipeline.sh "<app-id>" "<tag>" "<artifacts-dir>"

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

0 comments on commit d9feb0f

Please sign in to comment.