mirror of
https://github.com/bellingcat/datasheet-server.git
synced 2026-06-10 12:28:34 +03:00
adding regex to get rid of encryption information when sharing between multiple travis configs
This commit is contained in:
committed by
Lachlan Kermode
parent
9ffc7c88d0
commit
063586735c
@@ -26,6 +26,12 @@ if [ ! -f .env ]; then
|
||||
exit 3
|
||||
fi
|
||||
|
||||
# regex to match and delete 'before_install' and everything after it
|
||||
# necessary to delete these lines to get Travis to build for multiple accounts
|
||||
echo "creating new .travis.yml configuration"
|
||||
sed -i.old '/^before_install.*/,$ d' .travis.yml
|
||||
echo "old config file saved as .travis.yml.old"
|
||||
|
||||
travis encrypt-file .env --add --force --org
|
||||
git add .env.enc
|
||||
git add .travis.yml
|
||||
|
||||
Reference in New Issue
Block a user