Docker Action release tagging and docker image tags

We have a Docker action github-sync that uses github container registry see container images.

Our actions.yml looks likes:

runs:
  using: 'docker'
  image: docker://ghcr.io/repo-sync/github-sync:v2

Right now if I tag and publish v2.3, users of this version of my action will be pulling docker://ghcr.io/repo-sync/github-sync:v2 regardless of the v2.3 they specify in their workflow.

So workflows that uses: repo-sync/github-sync@v2.3 will actually use docker://ghcr.io/repo-sync/github-sync:v2 instead of :v2.3.

I’m hoping to not have to update the docker image version in action.yml before every tag and release. Is there a better pattern to match up the action tag and docker image tag on tag and release, i.e. repo-sync/github-sync@v2.3 -> docker://ghcr.io/repo-sync/github-sync:v2.3?

Thank you!

Hi @wei,

Action tag and image tag are different, but both need to be hardcoded.

You cannot match up them automatically, have to specify exact tag in workflow for action and image tag in action.yaml metadata file.

Thanks

1 Like