-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
39 lines (37 loc) · 1.47 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
sudo: required
language: node_js
node_js:
- stable
services:
- docker
branches:
only:
- master
addons:
ssh_known_hosts: "${SSH_HOST}"
before_install:
- bash scripts/ssh-build.sh
install:
- npm install -g gatsby-cli
- npm install
before_script:
- bash scripts/build.sh
script:
- bash scripts/docker-build.sh
- bash scripts/docker-push.sh
after_script:
- bash scripts/deploy.sh
deploy:
provider: pages
skip_cleanup: true
github_token: "$GITHUB_TOKEN"
local_dir: public
on:
branch: master
notifications:
email: false # default notification method
slack:
rooms: # https://docs.travis-ci.com/user/encryption-keys/
secure: lTjQZMw/8lU9uz6vL5q2Q6UkmKB3P2510eztuWA1dU+NieXyMxAaAZ+75yWuymHtgkRTNU45D0Q0nnx9CJa1MhVkz8x3pgSYzOA11ye8+yHbX8VQyM+PF14X08LDG8Od8szJOUDbRGt+UTk9zFGcR9wVGjzQ6SSxbBwKaV3Zs+AXiTRxoZmBjSvwMpAUoIJItxFqzQBpFbEowX+C+gEIxX40JL2rJITFDfttCk/Sr7qoaBbR/hTw06JSR0j4mv9z0D253gXBQqYyE5rUVA7ziV4vvEZsow0iPiYVXVwgn5g/p+w2W7gXIWF/0QwvwxJSC5gtx7Wv+z6P+k755akXi8bWTsxTcfxO2co5CgNJ5a8s8shPE4AoBq1sOaQjGlhErgIl+EoHLKy5gJK142A/6JrTUqZOg7zXQLVYhtB6qWiMgiabyUEa3x5XiVi/AyUIkxR2YyjIiSkbhIHxZOLY5a597Am4Jx29X+Rh8tX+YSdRbXX+gOhJk/qbQqLUpkSSpyi2q1Ymn6Ox787y5CtpiKacxEjPTFhSghdS0ReLN9bbuczTZkgEnPhCcawxXgyXQR5KaxLqJynpFCZxhmVUQ+M8T0zMQi5fD6UYPRQ4mBawMFCDFL4DDMaq3Np0WfQicGx20jvKwNxsxC785MinoqsolrTHrIEvrnmudbXglIg=
on_success: always # change: send a notification when the build status changes.
on_failure: always # always: always send a notification.