Skip to content

Commit

Permalink
generate docker image latest on script travis build
Browse files Browse the repository at this point in the history
Signed-off-by: Avelino <t@avelino.xxx>
  • Loading branch information
avelino committed Aug 16, 2020
1 parent 46a094d commit f259d97
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .travis.yml
Expand Up @@ -32,15 +32,14 @@ script:
- sh testdata/migrations_test.sh
- env go test -race -covermode=atomic -coverprofile=coverage.out ./...
- $HOME/gopath/bin/goveralls -coverprofile=coverage.out -service=travis-ci -repotoken $COVERALLS_TOKEN
- docker build && docker push prest/prest:latest

deploy:
- provider: script
skip_cleanup: true
script:
- curl -sL https://git.io/goreleaser | bash
- docker build
- docker push prest/prest:latest
- docker push prest/prest:v1
# - curl -sL https://git.io/goreleaser | bash
on:
tags: true
condition: $TRAVIS_OS_NAME = linux
Expand Down

0 comments on commit f259d97

Please sign in to comment.