-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
43 lines (43 loc) · 2.34 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
language: node_js
node_js:
- 16.20.2
env:
global:
- MATTERMOST_CHANNEL=publication
# MATTERMOST_HOOK_URL
- secure: poqn2/+Bz2WXteWYE8JEvIYeBgkkvYXSdNDOh+O8U1IcCmdWr6vy7Rqk12wP3s1nZzRmDTBbJTFApJVm1wb6UJwckFc8U+PYML16rXXvpfJrzD8u02DbzihNehkQ6ycuEUt+fy91azmrVen7Ic6yEE4OhpoHABGUqNXiGOwrx7fxjHxwHCZONDlCtDxDALjcQhcVY367tGFtJ4K2nTVtPWewK3/sngEDZ/yAmCv51jsBzKk/LOA8oqoDd2qeSfVP9lV+yo+fXT2fO/nO+s2vF6JuDT7avueu7/N8VTC7ANuUfKDBAc4k+I1gZRdZPSuKBRKv8pTzVP7NX3+F7G2mOyE4ChEuqn4hajmYfS2Nu50tYQGn+SSiuSSx9kn3TzjF3+Ri331AH1pIvqF+GQcO3h2X2/QFaaaZo0ZYjI6eTmJRFDjKRWt6Yhp588uMRn9eVI/hEcdXozxt5sH+Arkqr3fCbNRGpEQfc4jgtL1gnl6zS5SMWZAhS+hbGGzsls56dSeixNpBP2W9t6z5zEfn6rE89oX0My3rkEZX7GX2KhViDTf3ofXD+WC5IyOkeUyrC2MvBpg4v2AzLWOqJZw6U5wiNJIeYj/8jtIUxLKv1neudmcq3Svrtg8pqutupf2jKoiy8+v7sVBfbRayBhFw7FR29P+atwq8M1goBk4M5pQ=
# REGISTRY_TOKEN slug=orange editor=cozy space=default
- secure: Qe1ZWrDJoemkoqQS5JeJYpSRUeVWOFHgaz9RjdgI18mHD70JoWHdCWIhsY1yf9uG9pnWN/gb6G/ANNxDK83tEj/zvVam+KH56QUI1yHeWxrngax9ggyx5S6my1ozYPV5UylhpvYYNzg6lhCVe0aAMTayRzYw8ocRN72gdoFzWOjE/5XYD6lnMOY+XzKv7ag5Ui43kD3Q5AYv5jwEmzSOC/yREmjtT5ssFev3tghgZBYRstUnw9gknj6eAZX8Xmyc8xvn9dVIJfWY7QsE59FKu0Y7vuqlPXq3Pkcy5XesxPJTkhJ2jqfBu2pNk+vRgbd5wqpPx9EwwAORNOSBY92Fq6QmntDxLfSs237IX5JhZMN3zpCCR44BNWF/W1nGt0bIZbbW9ttvL5UzgI6Av/u4F6KM86OayF1JyHPWm82XLlbnnzwyrwUJhCvR2WNhznIFoKIj4yQ8dxQmWNu4xMh0a0yerFBfHteVJx8/dVJFOlXwJ12tB9F5R3xSIR6kEUGYXbL1PSlUvRWEZtxTbuGJySTdaS2X6niZb2OngKgDwi5QwYFIVEB4QTRrXhxjqyqqlL+5P6OWHZ84GRIGHrrUJy0ukd+x8hGjmXSFW609oiWBuB9V0iwfVPPvmbnAClG4RIzRcQXfIHAqGEZyfbX2PIWbymBiUsReY2SyPjxfOgM=
cache:
yarn: true
directories:
- node_modules
branches:
except:
- build
- build-debug
script:
- yarn lint
- yarn build
deploy:
- provider: script
skip-cleanup: true
script: DEPLOY_BRANCH=build yarn deploy && yarn cozyPublish
on:
branch:
- master
- main
- provider: script
skip-cleanup: true
script: DEPLOY_BRANCH=build yarn deploy && yarn cozyPublish --postpublish mattermost
on:
tags: true
before_install:
- openssl aes-256-cbc -K $encrypted_8ebb1ef83f64_key -iv $encrypted_8ebb1ef83f64_iv
-in github_deploy_key.enc -out /tmp/github_deploy_key -d
- eval "$(ssh-agent -s)"
- if [[ -f /tmp/github_deploy_key ]]; then chmod 600 /tmp/github_deploy_key; fi
- if [[ -f /tmp/github_deploy_key ]]; then ssh-add /tmp/github_deploy_key; fi
after_deploy:
- rm -f /tmp/github_deploy_key
- ssh-add -D