-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
25 lines (23 loc) · 2.59 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
---
branches:
only:
- master
env:
global:
# DOCKER_EMAIL
- secure: "BwfzcUbryDey9M2dV4IQSknrrTUKwE5azbQljTJ6UXcoJ7pg7/a1TJwPZz5qUUkExakuLlvb73A1bzbROb5bs8E8PnvTb+4YM+s/6pPh0PetpoaE61yw5/BSItmdsN/Y6rSUUOyEViblch3ZZXuZJsn6bxoiSyFyXYsNWRvgF+R1uTFka6UZMHKrH0eP2jP+kjQ0lMcpUdeCrfqA1RZEyAI+OkR191X8p4iCeBAfKYA8PLEdW8cu0DsUSdHz4knQVLGj+T0p7qM2oM4OKdzjUeDe0fRW3CrN7YptvdjdCnqcTxwZ6PZSp32p0xXPWUdI/VOnucYdc+c9TV0HV0Trv7NV08FSBrWDzNQ3UGCNWuq1dmp+oZ9wjSk9nrQtdMKfE43NYS1oUPqqXo+HH+2Ly6Noot38R3+5I99RWeVjjHwROTIg/KRqzSvUKGzMNhOXhvgv9eMREOE498dBKw7kNi061vlN+gn8Sn1XHLFvs8jHYgNLUtISNG8z/DwKHvpnqyVvOgfnd1/3zK6BXrHfvUa3QFqbKYGWFSbwgvIz+0WpLzHa6igej06rkxce+DSxMp+esL6uo4T6Tr5nuzjLGbFR9OGjShxNGw+ZgGSZ4V1+QoDJnYVVKuULobFYJxx9FQRXeIRAX+BGRdmLd5fFgjgCp+8FvF/8B+UT/np7u2s="
# DOCKER_USER
- secure: "qLehesiaqWnQdjweZ8V42k7/biPYoDGV106dHBi195oVacfqtjTppMYpzndb6dgA6x2jgm4doV/Ksuc1NV9F4ehyo7lAQqP7DxGQ768QpvbSSDgyrUH09pm0RAFMlzwVfNu8zC+ZVZ+Do2bNNMhXbvA46dR48i8/Cvxyik6e81XZEyQ6HdwUu+luirhdLHi3PUsN+64oeIa57PC1XKmK+U8wgx2ZW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N6zjgnGnCJnNUQzT9XR2E77612zo46JrByLXBslYebCF1birwaYBp6+c58oBOS06GPTh/kA1dOCIYvRD6re7M="
- DOCKER_REPO=spreadspace/sfive
script:
### pull current images to potentially use docker build cache
- docker pull $DOCKER_REPO:latest
### build the new images
- docker build -t $DOCKER_REPO:latest .
- docker tag $DOCKER_REPO:latest $DOCKER_REPO:$TRAVIS_BUILD_NUMBER
### push to docker-hub
- docker login -u $DOCKER_USER -p $DOCKER_PASS
- docker push $DOCKER_REPO:$TRAVIS_BUILD_NUMBER
- docker push $DOCKER_REPO:latest