-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
33 lines (33 loc) · 2.89 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
language: elixir
sudo: false
services:
- docker
elixir:
- 1.7.3
otp_release:
- 21.0.9
before_install:
- mkdir bin
- wget https://yt-dl.org/downloads/latest/youtube-dl -O bin/youtube-dl
- chmod a+rx bin/youtube-dl
- PATH=$PATH:bin
- export PATH
before_script:
- nvm install 8.9.1 && nvm use 8.9.1
- cd assets && npm install && cd -
after_success:
- docker login -u $DOCKER_USER -p $DOCKER_PASS
- export REPO=surik/tube_streamer
- export BRANCH=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then echo $TRAVIS_BRANCH;
else echo $TRAVIS_PULL_REQUEST_BRANCH; fi)
- export TAG=`if [ "$BRANCH" == "master" ]; then echo "latest"; else echo $BRANCH;
fi`
- make image
- docker tag $REPO:$COMMIT $REPO:$TAG
- docker push $REPO
env:
global:
- COMMIT=${TRAVIS_COMMIT::8}
- secure: CCgMemoeyXNTqjWa2ZKEYJd1Ou7ZU53HN5jMBdl/Y2QSB/p+TUzsO6OsbgOX8H0zfEVd09yN4hEaRiqF697P35B6QGi0TUc0cl40rSCVB40Kmew5KdjD7PGR9ZnCSg3R3StLilOsYRvnLnNJ1WMN0m+stO27bAEevJptDlnhakPo+r76qvCR7OYU0r7eeKq04wjfQvfcz9awjCeBkOHsg17HfV7hrYZ83KV1Iyvj7LMEYUYoXqMf2o7I6FWL4hXyaBteH4XPEDib7FVpHcfa8w84bl//riBXmHleCuDv9G0UoHBHUVod18cEwyy+IB7iPBbIUiD2RQqqxN+n9cCXi+34PwQ0VgFc9Kpzs5HT5sL+eOgtDzsRYKh23hYQjDCK/nKSNkju2rJUbY3Duyb0eqG3Aq+7cXOVuHUhJ08ERFfVVpsvyTVj1F/DNgdAVLSdJAHsxVjDVTHsOC+FwXaoakiMh/bOQKgZb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