-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
28 lines (24 loc) · 2.08 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
sudo: required
services: docker
language: bash
jobs:
include:
- stage: test
script:
# build image
- docker build -t martynas/kabrioletas-amd64 .
- stage: deploy
if: repo = 2m/kabrioletas-docker-amd64 AND tag =~ ^v
script:
# build image
- docker build -t martynas/kabrioletas-amd64:${TRAVIS_TAG:1} .
- docker tag martynas/kabrioletas-amd64:${TRAVIS_TAG:1} martynas/kabrioletas-amd64:latest
- docker login -u="$DOCKER_USER" -p="$DOCKER_PASS"
- docker push martynas/kabrioletas-amd64:${TRAVIS_TAG:1}
- docker push martynas/kabrioletas-amd64
env:
global:
# travis encrypt DOCKER_USER=...
- secure: "sGKm7e3IqKW5xmY/z2eFAl0ZLhBhEEXZYc7QwCe9ovnqfQauJIvwskvs2WKlqQoQS9xjhFPPE07XLIlWM7w4cjzPbE7wkYmjbFPeiwYkQXji2JdXD6XwYBFTOXyfq4Qr55Qq0TCIp7/cu2KVkOvyLOkZBwAjb494cpDPvjrYzbu2+iiyDMMoHAIAe4lF5Fe6RnOOEySTm1RDFx1UW1xcMowj4j+igfhfvfvIBA9EmEx6Y64rlluH/HVGevo65qnb1ht7BjLOvd93vgrHnxDA53+jYSK6Mj86RWbjz46lDE919s8eVFh2NTM95uw6Wl1y5aUlGWQUGb7k4UxKElNX/zdM0B0NgJioAo2GieFaVcfsuXmufyHH/4WgyjA6Osy4wi4uawg+XRWfnWcaB3TAbzr7I9WvCAg7WyCDYrHsYLafkwUMXbafRrC0x77Tc89kDhnk+O1+KomPKk/FctHtSGynR8HMVjzmaCJqNgGEHYZ0d0T7fkHtmcqKylsbvITkj1Xchbh1aOY/ey4tdY+xhdEK25oHRMv14tFNXkqS709BiaRGkxZnkplxqKGc4J8X6ikOG3AGuToNGTd0eWErTiuzPlK5U+lTvCctnuoSabIRmL+H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