-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
34 lines (34 loc) · 1.71 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
sudo: required
language: node_js
node_js:
- stable
services:
- docker
before_install:
- wget -qO- https://toolbelt.heroku.com/install.sh | sh
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- echo "$HEROKU_API_KEY" | docker login -u "$HEROKU_USERNAME" --password-stdin registry.heroku.com
cache:
directories:
- node_modules
script:
- npm build
- docker build -t mahdichtioui/feed-api-node-js .
- docker tag mahdichtioui/feed-api-node-js registry.heroku.com/$HEROKU_APP_NAME/web
deploy:
provider: script
script: docker push mahdichtioui/feed-api-node-js; docker push registry.heroku.com/$HEROKU_APP_NAME/web;
heroku container:release web --app $HEROKU_APP_NAME
on:
branch: master
notifications:
email:
recipients:
- mahdichtioui19@gmail.com
slack:
rooms:
secure: NhEJg/+AhNHh8Dl/OQwEZyGtuaojJrZFk0wvZaLCF62IU/ez+0WupCFQ8rFl5NHCfpeLyNlq1twfxLSGRMfC+Z6nWzs2tI+zn7+Vvyj+K8H/2LpadJyrVR0GEU1BvEKkKjKsW6o/QbndGpznI3VjUUZ1yzjGGoQRjeihhT1OCrjAWW5WTs9Kuv3IExbyCXooDd5SQk0tduTRjidgLXbGdeVy4t003PDBHtDr6+Euq2J9BWx5p3P6uZnwH/2s8/zl6LB4NR5JGZs5gDIfbYRGy1SKqE8aD4Rp6pNpys78cn02IvytBBPJT8K9W5pm3uQfb2XomR+A5xumilY6Sd0x/r4zQAZhhGcxliuBh4IYiIgPjOwB6qdZfG91UI+s6MuSDYO8kohU8bDUukyS/RsrThvTl6GMXeAMfxAMZron5ewMlHSsIoEkIIEBNwpMzjNHaEaUJyofASN0NKvW1mmMkqKwjzhrBqjoK9BldmOrSWsEur/okBH7jmCDYwjOQWx0/5UlP3EbMcM9n1fPfM1AItcv4tN8YYI6KdIAp/L8goXMRkDVDxwwh8ID48W1Gnlp9y8A4ERjIegxvehw9aZYBlWKDA1K+8Ab2vbCK4w0WLuxx5sZkKQoZy+kgg5LDcK0br8u1hxzWLmBH0Lr/G6MTWkO40a+nGkNaeVNKmT7tjo=
template:
- "Repo `%{repository_slug}` *%{result}* build (<%{build_url}|#%{build_number}>) for commit (<%{compare_url}|%{commit}>) on branch `%{branch}`."
- "Execution time: *%{duration}*"
- "Message: %{message}"