-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
34 lines (31 loc) · 1.56 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
language: erlang
otp_release:
- 21.3
- 22.1
script:
- rebar3 check
- rebar3 as prod tar
cache:
directories:
- "$HOME/.cache/rebar3"
deploy:
provider: releases
api_key:
secure: jwuIQHtpOxJfYf/RpG+4ZODocYxN3rEGxZT/Cg20bB8b8NDkX5WlaeyDLVYOuM5TIqpCh0R8EW4YITcswEkw+HSY+HCQKwDSzJTTxE4r1qIea2aLAdiOSVhCcOWhnz8E78tw+n7MiZMKH1VZRbHlanPrjJWhA4DEmP9zsbKwlTnFCytCZzOroaijp+vgkHJ4a/Dn/tIpBOJUDvDvLq2DV4q7RCr7+X/sYvhsrmrifVcMDKIFMHZqRUCQQLUFrQHL8+5VT4qwMczaVlorNfAVL0Bg6NiwqP1xmY1dYYi7O9chg2NdxmlWu8KxCWtpvqOLuPlQC6U20Fta9kDSgNcDLFWllibNSUEfLrkXDVd3kILWTJPmjPpuZ37YoAQDgC7noa0zKeEzicUy+NSlbAdDqqbMHUY7lNCrqUzXFPGjkyzpY9K+RBDAQnkQiXaQRRCD565YZ55tV/EtwO4I3V/+WkMVzJzEYqA2jwGQT/o7MV/1IReaXKZwaQBmj4J5o4gOJEvrdrZMj1F+e6HK0yTy7oYlLrkScJ8O9lgqMyh0HQUHj4tC0jTH9VYgTiap/0el4zhev8UCaqVET/b8cXvwQzbtNVSjeyG6kcxpM/L0OdJz9TBxMiAgHA+7K7RN/3lLhNulEg9fCYzAolggYnoWBF2XrFIijisLMPYx2PEyyJo=
file: _build/prod/rel/mqtt_simulator/mqtt_simulator-*.tar.gz
file_glob: true
skip_cleanup: true
on:
tags: true
after_deploy:
- echo "${DOCKER_PASSWORD}" | docker login -u "${DOCKER_USERNAME}" --password-stdin
- |
docker build \
--label version="${TRAVIS_TAG}" \
--label branch="${TRAVIS_BRANCH}" \
--label commit="${TRAVIS_COMMIT}" \
--label maintainer='Antoine Gagné' \
--label url='https://github.com/AntoineGagne/mqtt-simulator' \
--tag "${DOCKER_USERNAME}/mqtt-simulator:${TRAVIS_TAG}" \
--file Dockerfile .
- docker push "${DOCKER_USERNAME}/mqtt-simulator:${TRAVIS_TAG}"