add the option to rename the image pushed to dockerhub
This commit is contained in:
@@ -48,7 +48,9 @@ Builds and pushes one image with a uniform tag set from
|
||||
|
||||
- `registry`: default `registry.traberph.de`.
|
||||
- `project` (required): Harbor project, e.g. `public` or `private`.
|
||||
- `image` (required): image name, used in Harbor (`<registry>/<project>/<image>`) and on Docker Hub.
|
||||
- `image` (required): image name in Harbor (`<registry>/<project>/<image>`).
|
||||
- `dockerhub-image`: Docker Hub repository name, default `<project>-<image>`. See
|
||||
[Docker Hub](#docker-hub).
|
||||
- `context`: default `.`.
|
||||
- `dockerfile`: default `<context>/Dockerfile`.
|
||||
- `platforms`: default `linux/amd64,linux/arm64`. QEMU is set up when an `arm` platform is listed.
|
||||
@@ -92,9 +94,11 @@ tags instead of producing a newer one.
|
||||
### Docker Hub
|
||||
|
||||
If `dockerhub-username` and `dockerhub-token` are passed, the image is also pushed with the same
|
||||
tags to `docker.io/<dockerhub-username>/<image>`, e.g. `registry.traberph.de/public/homepage` →
|
||||
`docker.io/traberph/homepage`. Only pass them for public images: Docker Hub creates new
|
||||
repositories as public by default.
|
||||
tags to `docker.io/<dockerhub-username>/<project>-<image>`, e.g.
|
||||
`registry.traberph.de/public/homepage` → `docker.io/traberph/public-homepage`. Docker Hub has no
|
||||
projects, so the project goes into the name. Set `dockerhub-image` to use another name, e.g.
|
||||
`dockerhub-image: homepage` → `docker.io/traberph/homepage`. Only pass the secrets for public
|
||||
images: Docker Hub creates new repositories as public by default.
|
||||
|
||||
```yaml
|
||||
secrets:
|
||||
|
||||
Reference in New Issue
Block a user