Retags a given Docker Image and pushs the new tag to the given registry.
Retagging a Github sha tag to latest.
- name: Retag to latest
uses: koraykoska/[email protected]
with:
registry: some.registry.com
name: my-awesome-docker-image/my-package
old_tag: ${{ github.sha }}
new_tag: latest
username: github
password: ${{ secrets.GITHUB_TOKEN }}
The new tag will be pushed to the registry.