-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.travis.yml
32 lines (26 loc) · 886 Bytes
/
.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
language: go
os: linux
dist: xenial
branches:
only:
- master
before_install:
- openssl aes-256-cbc -K $encrypted_a5ccc7f84a63_key -iv $encrypted_a5ccc7f84a63_iv
-in deploy_key.enc -out ./deploy_key -d
- eval "$(ssh-agent -s)"
- chmod 600 ./deploy_key
- echo -e "Host $SERVER_IP_ADDRESS\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
- ssh-add ./deploy_key
- ssh -i ./deploy_key -o "StrictHostKeyChecking=no" $DEPLOYMENT_USER@$DEPLOYMENT_HOST pwd
install:
- curl -LO https://github.com/gohugoio/hugo/releases/download/v${HUGO_RELEASE}/hugo_extended_${HUGO_RELEASE}_Linux-64bit.deb
- sudo dpkg -i hugo_extended_${HUGO_RELEASE}_Linux-64bit.deb
script:
- hugo version
- hugo
after_success:
- scp -o stricthostkeychecking=no -r public/* $DEPLOYMENT_USER@$DEPLOYMENT_HOST:~$DEPLOYMENT_PATH
env:
global:
- PRODUCTION=true
- HUGO_RELEASE=0.76.5