forked from justinrummel/jr.com-mm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
75 lines (64 loc) · 4.82 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
dist: xenial
language: ruby
rvm:
- 2.3.7
sudo: false
env:
global:
- JEKYLL_ENV=production
- NOKOGIRI_USE_SYSTEM_LIBRARIES=true
# https://docs.travis-ci.com/user/environment-variables/#Encrypting-environment-variables
# CLOUDFLARE_ZONE
- secure: "JEUv6XtyP8lEDOErzim5AuwHB6/PRGJY7eQFWIwDXmiAhbHQhS9KxnLbUyQ1FYNpc7FsVKtQgXYodLft6wheWYaz8JSja0ZdeYHWDrrGuFMscupLCKK6PMFXb8IcOKdWZo1Alf5a+8TEIx+097jHKg+Ntb4jn3IoMOx18oLXYriw2Sd8qDdP8Qbuxczme5z3A3Fs+uOmn3B1Aclni4r50TbHPjjLHE8ypBV63FV1y5iHwi5Tw39UZ2gZtHrEmqLWKuR12kW+GHDxH4qFUKc4zIe9Ox/tyjx7nTufSxyXb6AuNkY8ykr57CDmP/IVbFGL+hdlgsr8udjes3+AWBEGpDHAJcHDEkN/tvzm81ZVeL+dMPf8GYUbvwRhHB+aZjjQY94BgdguncBJ4MhcFJBYZOYNujqakD72NNhJ7y1vru6H559IaHmSNk2XtUHrznokAtWE+ht4Dd674xmt63OV6eCrvZSvAwkG8lIxmrheI0Vf+jnVxI+5Fkatg4OsgYgtYLcMb3VKA20cEKuoUaJ3kueGV8sNfMfxAVf/xahk1StsXeFzt5Qr6nhw4plnmieWwT4w7vmy9IQx0VzknX0YszE/Sowfara06/ncgCJiyTl3eus0AAqEOxw67oSTmuhcpM8iYTKOrU8CcpJ2nXN0t7zVk1n+OY8IAxtU2mlJWtg="
# CLOUD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18l8YEs1ZWjQGhrZGuLPU6UZQz3hXz1uI+umidIhlmBfO9PDdzt+sbSgQhjX5EyQc4mBmR5TOZ5UBTw8Hhv6bKv0enpdUKrcLRBFcpupqJkBsdoyS/EMAshwYoP6HTTxbN4fXwtHyc/lV3hwOlI3eXflkVY56x4FdprRJK5aikFT4AJaP2GfgGwdGG8UG6EPl5AgfQNrN2I3S2nRz8oBUfTiEZNtWbqnp+E7FlO1Igx3KFjHLeyhcUDOZ62roR3UjjFhhMHNtECWrmK1cATcEMhpaM2XZ3zcTjy1d7IdtLga69Fa9r67egIyI2HPRqTyfwaWo7465kX+GG26MQbZgyb93o="
addons:
ssh_known_hosts:
- vegas.www.justinrummel.com
- lux.www.justinrummel.com
apt:
packages:
- dnsutils
- gsl-bin
before_install:
- openssl aes-256-cbc -K $encrypted_a5975f3f1aa1_key -iv $encrypted_a5975f3f1aa1_iv -in edgerc.txt.enc -out .edgerc -d
before_script:
- chmod +x ./script/cibuild
script: ./script/cibuild
before_deploy:
- openssl aes-256-cbc -K $encrypted_bfeb93fbf318_key -iv $encrypted_bfeb93fbf318_iv -in deploy_key.enc -out /tmp/deploy_key -d
- eval "$(ssh-agent -s)"
- chmod 600 /tmp/deploy_key
- ssh-add /tmp/deploy_key
- ssh-agent -k
- curl -L https://github.com/akamai/cli-purge/releases/download/1.0.0/akamai-purge-1.0.0-linuxamd64 -o akamai-purge
- chmod +x akamai-purge
- export PATH=$PATH:$PWD
deploy:
- provider: script
skip_cleanup: true
script: rsync -P -cavz -e "ssh -i /tmp/deploy_key -oStrictHostKeyChecking=no" --delete $TRAVIS_BUILD_DIR/_site/ [email protected]:/var/www/justinrummel.com/html/ --exclude=/.well-known --exclude=/cgi-bin/ --exclude=/.htaccess
on:
branch: jr-branch
- provider: script
skip_cleanup: true
script: rsync -P -cavz -e "ssh -i /tmp/deploy_key -oStrictHostKeyChecking=no" --delete $TRAVIS_BUILD_DIR/_site/ [email protected]:/var/www/justinrummel.com/html/ --exclude=/.well-known --exclude=/cgi-bin/ --exclude=/.htaccess
on:
branch: jr-branch
after_deploy:
# akamai-purge --edgerc .edgerc --section travis delete --cpcode 490267 658004 525141 525142; sleep 5;
- |
akamai-purge --edgerc .edgerc --section travis invalidate --cpcode 490267; sleep 5;
notifications:
email:
recipients:
on_success: always
on_failure: always
slack:
rooms:
- secure: "eLRrcv/0jtuzRxdu4VJPuex3l6enZ6oluMzneDpqd9RKDX3ZwG+tPPaxZxc3jB6IQt0hE9TjoVTx1nDz5SOyXAnMzK8LgQkz2WKahpxo+kreD5Q9epEN0nDoSMyIvH1i/U82E9M1BsLnv8zpvRCtM45D4vXib6iZrslmOQ6NhG/yTPjcjZCdHwAy8IACh9Hu4NwDOfGaO0g0f9Az0EKz286v7VMs6fs1HRDIqewXTA78Nfp3+geVYCGzR/WJSa+ERWy0MuRi8l5vvjVpHIIXKNSzcSY9HAVjDhY/+oFoM8k7Si9SrbF91CfygG9jgngcjv3XnLgiS7PWqfZOsRghTAm5C7Cu0cyb5zing+tKMNtmF3Ssm5Nd/Tk/ThvjPB9XBFMM4DFNPKw50Z5EKOyFxInM37jeb2Eot+DXfyeOnaBoAK+q55YGIqSeYn3u0UhYD1Sj3+GIYJ982kSSKCqRaxwUvOxxQrcS6h6oPrfjK3c26aFMOjCk/vKeV7Pd5XX8NP/UNsuYdBlM1NvArU+EfXoMwvMXxttIuLEhFv5MWBLRDW77WXVCCAP5zvLpduLX704VZ5Eu+MFkKvbsPB0snqC8ak+T3aczwOkQ6LPuX5EtspGgIDdO2KZ9qV4A3dwb6p8ZG+Hmt65XsXa4LVcXgXM4FLGVFhGGeVlhnmHgejY="
on_success: always
on_failure: always