File tree Expand file tree Collapse file tree 3 files changed +22
-0
lines changed
Expand file tree Collapse file tree 3 files changed +22
-0
lines changed Original file line number Diff line number Diff line change 1+ sudo : required
2+
13language : go
24
5+ services :
6+ - docker
7+
38go :
9+ - 1.8
410 - tip
511
612before_install :
@@ -13,6 +19,10 @@ script:
1319
1420after_success :
1521 - bash <(curl -s https://codecov.io/bash) || echo "Codecov did not collect coverage reports"
22+ - if [ "${TRAVIS_BRANCH}" == "master" ]; then
23+ docker login -u="${DOCKER_USERNAME}" -p="${DOCKER_PASSWORD}";
24+ docker push numbleroot/pluto;
25+ fi
1626
1727deploy :
1828 provider : releases
@@ -23,6 +33,9 @@ deploy:
2333 on :
2434 tags : true
2535
36+ docker :
37+ - docker build -t numbleroot/pluto .
38+
2639notifications :
2740 email :
2841 on_success : change
Original file line number Diff line number Diff line change 1+ FROM alpine
2+
3+ ADD ./pluto /usr/bin/pluto
4+
5+ ENTRYPOINT ["/usr/bin/pluto" ]
6+ CMD ["-config" , "/etc/pluto.toml" ] # default location which can be easily overwritten from the outside
Original file line number Diff line number Diff line change 1414build :
1515 CGO_ENABLED=0 go build -ldflags ' -extldflags "-static"'
1616
17+ docker : build
18+ docker build -t numbleroot/pluto .
19+
1720pki :
1821 if [ ! -d " private" ]; then mkdir private; fi
1922 chmod 0700 private
You can’t perform that action at this time.
0 commit comments