forked from dockstore/dockstore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathencrypt.sh
executable file
·21 lines (17 loc) · 1.05 KB
/
encrypt.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/env bash
set -o errexit
set -o nounset
set -o xtrace
tar cvf dockstore-integration-testing/src/test/resources/secrets.tar dockstore-integration-testing/src/test/resources/config_file.txt dockstore-integration-testing/src/test/resources/config_file2.txt dockstore-integration-testing/src/test/resources/db_confidential_dump_full_2.sql dockstore-integration-testing/src/test/resources/dockstoreTest.yml dockstore-integration-testing/src/test/resources/db_confidential_dump_full.sql
# store working dir
GIT_DIR=`pwd`
# execute always in the same place to keep generated variable names consistent (sigh)
# go to a nested dir for the new db testing to maintain a consistent variable name
mkdir -p /tmp/add_constraint_1
cd /tmp/add_constraint_1
travis encrypt-file $GIT_DIR/dockstore-integration-testing/src/test/resources/secrets.tar -r ga4gh/dockstore
# copy the new file
cp secrets.tar.enc $GIT_DIR/dockstore-integration-testing/src/test/resources
cd -
git add dockstore-integration-testing/src/test/resources/secrets.tar.enc
git commit -m 'update secret archive'