Skip to content

Commit

Permalink
create docker image tag by git tag name
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 eb757b3 commit c676e1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -32,14 +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 . -t prest/prest:latest && docker push prest/prest:latest

deploy:
- provider: script
skip_cleanup: true
script:
- docker build . -t prest/prest:v1
- docker push prest/prest:v1
- docker push prest/prest:$TRAVIS_TAG
- curl -sL https://git.io/goreleaser | bash
on:
tags: true
Expand Down

0 comments on commit c676e1c

Please sign in to comment.