-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #64 from broadinstitute/dp-trs-build
travis github staging fix
- Loading branch information
Showing
2 changed files
with
44 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,40 @@ | ||
#!/bin/bash | ||
set -e -o pipefail | ||
|
||
openssl aes-256-cbc \ | ||
-K $encrypted_fb18189f5cc1_key \ | ||
-iv $encrypted_fb18189f5cc1_iv \ | ||
-in travis/github-deploy-id_rsa.enc \ | ||
-out travis/github-deploy-id_rsa \ | ||
-d | ||
chmod 400 travis/github-deploy-id_rsa | ||
ssh-add travis/github-deploy-id_rsa | ||
git clone git@github.com:broadinstitute/viral-ngs-staging.git | ||
if [ -z "$TRAVIS_PULL_REQUEST_BRANCH" ]; then | ||
|
||
travis/version-wdl-runtimes.sh | ||
travis/flatten-wdls.sh > /dev/null | ||
|
||
VERSION=$(travis/list-docker-tags.sh | cut -f 2 -d ":" | tail -1); echo "version - $VERSION" | ||
|
||
eval $(ssh-agent) | ||
openssl aes-256-cbc \ | ||
-K $encrypted_fb18189f5cc1_key \ | ||
-iv $encrypted_fb18189f5cc1_iv \ | ||
-in travis/github-deploy-id_rsa.enc \ | ||
-out travis/github-deploy-id_rsa \ | ||
-d | ||
chmod 400 travis/github-deploy-id_rsa | ||
ssh-add travis/github-deploy-id_rsa | ||
ssh-add -l -E md5 | ||
git clone git@github.com:broadinstitute/viral-ngs-staging.git | ||
|
||
cd viral-ngs-staging | ||
if [ -z "$TRAVIS_TAG" ]; then | ||
git checkout -B $TRAVIS_BRANCH | ||
fi | ||
|
||
rm -rf *; cp -a ../pipes ../travis/github-staging/* . | ||
../travis/dockstoreyml.sh pipes/WDL/flattened/*.wdl > .dockstore.yml | ||
git add -A -f | ||
git diff-index --quiet HEAD || git commit -q -m "CI push github.com/broadinstitute/viral-pipelines:$VERSION" | ||
|
||
git tag $VERSION | ||
git push origin --tags | ||
|
||
if [ -z "$TRAVIS_TAG" ]; then | ||
git push -f -u origin $TRAVIS_BRANCH | ||
fi | ||
|
||
fi |