Skip to content

Commit cd7b6d1

Browse files
committed
simplify deployment
1 parent ea9018f commit cd7b6d1

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

.travis.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,11 @@ env:
88
script:
99
- go test -v -race ./service
1010

11-
after_success:
12-
- |
13-
if [ -n "$TRAVIS_TAG" ];
14-
then
15-
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
16-
make build push;
17-
fi
18-
1911
deploy:
2012
- provider: script
2113
skip_cleanup: true
22-
script: curl -sL https://git.io/goreleaser | bash
14+
script: |
15+
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin &&
16+
curl -sL https://git.io/goreleaser | bash
2317
on:
2418
tags: true

0 commit comments

Comments
 (0)