Retags a given Docker Image and pushs the new tag to the given registry.
Required Name of Image
The name of the image you would like to retag.
Required Tag of Image
The old tag of the image you would like to retag.
Default: latest
The new tag of the image you would like to retag
Default registry.hub.docker.com
Registry host.
URL of a Docker compatible registry for pull and pushing a Docker image.
Required Registry Username
Required Registry Password
Registry Password. This should be stored in a Secret on Github.
- name: Search latest semver Image
uses: tinact/docker.image-retag@master
with:
image_name: test
image_old_tag: do_not_use
image_new_tag: retag
registry: docker.pkg.github.com/tinact/docker.image
registry_username: sbaerlocher
registry_password: ${{ secrets.GITHUB_TOKEN }}
This project is under the MIT License. See the LICENSE file for the full license text.
(c) 2020, Tinact