mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-03-17 20:47:50 +02:00
parent
4181d4e04f
commit
a5bb81b7d1
@ -38,6 +38,11 @@ install:
|
||||
services:
|
||||
- docker
|
||||
|
||||
after_success:
|
||||
# docker login is required if you want to push docker images.
|
||||
# DOCKER_PASSWORD should be a secret in your .travis.yml configuration.
|
||||
- test -n "$TRAVIS_TAG" && docker login -u=myuser -p="$DOCKER_PASSWORD"
|
||||
|
||||
# calls goreleaser
|
||||
deploy:
|
||||
- provider: script
|
||||
|
@ -32,6 +32,10 @@ ENTRYPOINT ["/mybin"]
|
||||
|
||||
This configuration will build and push a Docker image named `user/repo:tagname`.
|
||||
|
||||
> **Attention**: Note that were are not building any go files in the docker
|
||||
> build phase, we are merely copying the binary to a `scratch` image and
|
||||
> setting up the entrypoint.
|
||||
|
||||
## Customization
|
||||
|
||||
Of course, you can customize a lot of things:
|
||||
@ -117,10 +121,10 @@ dockers:
|
||||
|
||||
This will build and publish the following images:
|
||||
|
||||
- myuser/myimage:v1.6.4
|
||||
- myuser/myimage:v1
|
||||
- myuser/myimage:v1.6
|
||||
- myuser/myimage:latest
|
||||
- `myuser/myimage:v1.6.4`
|
||||
- `myuser/myimage:v1`
|
||||
- `myuser/myimage:v1.6`
|
||||
- `myuser/myimage:latest`
|
||||
|
||||
With these settings you can hopefully push several different docker images
|
||||
with multiple tags.
|
||||
|
Loading…
x
Reference in New Issue
Block a user