-
Notifications
You must be signed in to change notification settings - Fork 586
/
deploy.sh
23 lines (20 loc) · 869 Bytes
/
deploy.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
set -e # Exit with nonzero exit code if anything fails
awesome_bot README.md -t 5 --allow-timeout --allow-dupe --allow-redirect --white-list vimeo
if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then
ENCRYPTED_KEY_VAR="encrypted_${ENCRYPTION_LABEL}_key"
ENCRYPTED_IV_VAR="encrypted_${ENCRYPTION_LABEL}_iv"
ENCRYPTED_KEY=${!ENCRYPTED_KEY_VAR}
ENCRYPTED_IV=${!ENCRYPTED_IV_VAR}
openssl aes-256-cbc -K $ENCRYPTED_KEY -iv $ENCRYPTED_IV -in tk-deploy-key.enc -out tk-deploy-key -d
chmod 600 tk-deploy-key
eval `ssh-agent -s`
ssh-add tk-deploy-key
SHA=`git rev-parse --verify HEAD --short`
git clone [email protected]:fatihacet/turkcekaynaklar-com.git gl
cd gl
git config --global user.email "[email protected]"
git config --global user.name "Fatih Acet"
git commit --allow-empty -m "Deploy new version: ${SHA}"
git push origin master
fi