1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-03-17 20:47:50 +02:00

docs: improve docker docs

closes #694
This commit is contained in:
Carlos Alexandro Becker 2018-06-06 10:44:52 -03:00
parent 4181d4e04f
commit a5bb81b7d1
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940
2 changed files with 13 additions and 4 deletions

View File

@ -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

View File

@ -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.