forked from cblomart/zwaymqtt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
47 lines (47 loc) · 4.46 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
35
36
37
38
39
40
41
42
43
44
45
46
47
language: go
go:
- tip
sudo: required
env:
global:
- secure: kdfOrgrJ+3oIloEsqOAuRwKY4m/ql27Qsy3UrKAxs1Kkr8pt6RdLI5Nop0WWDy0gEe5OLLQXVOmEZN/j23d2T7gK3KbYrVzVZHviPZJ0QAdB1jZBAtS5m9Inib7H349ZiZMpOG6nupWODdvzjJq/PYiAlGclNfXPZvokKWImTGTgQwnzEZVJ36rpX4kVd4dFhRssCI29HM+nOpt5ub8U4M4jKQAYSGEB+AC6tQdoe58rD9SuFcvXHENJQ/FSE9YCi94uDChbYeK1nCz55ddnODdl209a+fuzOtlqBh+pZ9l1FAFaO4ug5zA0hbIARES/utBzDTueClwx2uSBMcfrR3JJpVZJ5kLWozqUEC3AjKgyVDe2Y0OiXcQItx2Niaon6QA3igc8UQGYgUA9g2WtAxduhqo9A/fObZ3tvgB8cXjQN/UNtfROgKaunldGlLOiSRUMu8Dq/6ZoHBt9U1y+dQ5BbEheSwcdJTEnwNxyPXn8x0Dk2D+PY8FO//czXWaHmQaXDBLEHRIczmDv3NDqGRVax1j6+uVcXnc7LOCmc68cxMECDZQdNYzAJFdsD0DXpPJkCIwrfxQjHrsW169kBbGT8PI5y/LeEyyhVrrO4WtCz3cSH4xvf+FE7t0JjU+imySu2USpeYmY5MxF3LBAPUPOA2a93VUBpz8vWstpSVQ=
- secure: ngOeyJvRriJhR1XUj5hcS508AeuYN+xaBRvBgL/7hcGWRpdLOi9Uh4i2jsqhGdxca3ErSwLuLxTrJTpjGn4FtzdgAtW4e2wlsgId0Y3RQiX1ZPBV3nbxCKZ0DMczO8GJycp+ZK4TJExhDbsKDBPjD7mh+k4Ah9EcT8J7xstE5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0dSpb2mOa1hw2A/irE6GwSlTgLwYyfZAcCSb+MEaUOPyEpuSeILq1/o9YgtSbgXlh2VD31gptanN6tZ8zZtk0P14USdSEmsLuNB5g0NCI4VZr//xU74Nq2kqdf30Z3hxEGhl7DE=
- COMMIT=${TRAVIS_COMMIT::8}
services:
- docker
install:
- make deps
script:
- make all
deploy:
provider: releases
api_key:
secure: EIFGuItbdzBxaI/Tu05MMVE1/ct5nCossfveSc4qH1I+UqXWzxh6S9w5SsNw1VUlQOByp5qfMf+Ihbvzf2xc0qEhaJZh/YiERHug8E8IWRAC2xdFOcwZyax9TjjUM7xiWJr4CTEGwikmcTtdUMyvA/Ur3m5184uR2Nm+50dgcq+dSprFDbJuFl3Pc/W6gHkSprE09k/8spAkpK2p0CmD5S6Bb4vMrGON9FiD8I4yRqqpt8lpDDnSbjy/y40ie26m471+pmAWHfa9ohGrmHQcaP6yuXC9A6wlmTvyQeO8IYZqVJyyatOHQZMUbBUDCxtTwcaCgmumq7kb4ECbKnrRHyu+J+YpPxot8iNaEmSCg+P5pogSdmQRvsl4XjV5fyzfSbfYOygO7z6JSZgLkIPquptQMdpyQ6ACFUc+CTkH7bf2sBltSJHoPevgSII2CFfeGSjcq8wEXEwKh6uJrF+pyKPsgXWBPqZ+Xy4P8jyYfCW/FWc2Wjg+Ue92ai/YNwvsobNzktqyfkivwFikJHhhnub2gNvm2AhLmKuQh4j9zZEyCUyjceedmj9cCERXEFH50MjAqBO/PstDk1TTOupOepd+dCJ8t3zLnAhg1bxQkn/ISxI553tltKewJfp1jTkdbV7EBeymhqQ4rLYY3/w89amsYo+ACX05IJy0Y1Ehu/w=
file:
- releases/zwaymqtt_darwin_amd64.tgz
- releases/zwaymqtt_linux_amd64.tgz
- releases/zwaymqtt_linux_arm.tgz
- releases/zwaymqtt_windows_amd64.tgz
skip_cleanup: true
on:
tags: true
after_success:
- echo branch $TRAVIS_BRANCH / tag $TRAVIS_TAG / commit $COMMIT
- docker login -e $DOCKER_EMAIL -u $DOCKER_USERNAME -p $DOCKER_PASSWORD
- cp releases/linux/amd64/zwaymqtt docker/linux/
- cp docker/ca-certificates.crt docker/linux/
- docker build -f docker/linux/Dockerfile -t $DOCKER_USERNAME/zwaymqtt docker/linux/
- docker tag -f $DOCKER_USERNAME/zwaymqtt $DOCKER_USERNAME/zwaymqtt:$COMMIT
- docker tag -f $DOCKER_USERNAME/zwaymqtt $DOCKER_USERNAME/zwaymqtt:$TRAVIS_BRANCH
- if [ "$TRAVIS_TAG" != "" ]; then docker tag -f $DOCKER_USERNAME/zwaymqtt $DOCKER_USERNAME/zwaymqtt:$TRAVIS_TAG; fi
- if [ "$TRAVIS_TAG" != "" ]; then docker tag -f $DOCKER_USERNAME/zwaymqtt $DOCKER_USERNAME/zwaymqtt:stable; fi
- docker push $DOCKER_USERNAME/zwaymqtt
- cp releases/linux/arm/zwaymqtt docker/rpi/
- cp docker/ca-certificates.crt docker/rpi/
- docker build -f docker/rpi/Dockerfile -t $DOCKER_USERNAME/rpi-zwaymqtt docker/rpi/
- docker tag -f $DOCKER_USERNAME/rpi-zwaymqtt $DOCKER_USERNAME/rpi-zwaymqtt:$COMMIT
- docker tag -f $DOCKER_USERNAME/rpi-zwaymqtt $DOCKER_USERNAME/rpi-zwaymqtt:$TRAVIS_BRANCH
- if [ "$TRAVIS_TAG" != "" ]; then docker tag -f $DOCKER_USERNAME/rpi-zwaymqtt $DOCKER_USERNAME/rpi-zwaymqtt:$TRAVIS_TAG; fi
- if [ "$TRAVIS_TAG" != "" ]; then docker tag -f $DOCKER_USERNAME/rpi-zwaymqtt $DOCKER_USERNAME/rpi-zwaymqtt:stable; fi
- docker push $DOCKER_USERNAME/rpi-zwaymqtt