mirror of
https://github.com/bellingcat/datasheet-server.git
synced 2026-06-12 13:28:32 +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
1
.gitignore
vendored
1
.gitignore
vendored
@@ -10,3 +10,4 @@
|
|||||||
src/config.js
|
src/config.js
|
||||||
/yarn-error.log
|
/yarn-error.log
|
||||||
*.pem
|
*.pem
|
||||||
|
.travis.yml.old
|
||||||
@@ -26,6 +26,12 @@ if [ ! -f .env ]; then
|
|||||||
exit 3
|
exit 3
|
||||||
fi
|
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
|
travis encrypt-file .env --add --force --org
|
||||||
git add .env.enc
|
git add .env.enc
|
||||||
git add .travis.yml
|
git add .travis.yml
|
||||||
|
|||||||
Reference in New Issue
Block a user