The question was answered when GitHub package registry was the solution. This is now deprecated and I have recently moved to the new GitHub Packages Container registry and am wondering how this should be accomplished now?
My docker image is now looking like this:
env:
IMAGE: ghcr.io/${{ github.repository }}:${{ github.sha }}
I am creating "DevOps" workflows on GitHub using GitHub actions.
Sometimes integration tests fails and therefore my workflow also fails. Often these failures is caused by failures in the integration tests and no extra code is needed to be modified when the tests are modified.
When I restart my workflow, then my code is rebuild (and tested) before it is uploaded to GitHub (again) as a docker image.
My question: How can I inspect if my docker image is already created and uploaded to my GitHub package so I do not need to rebuild an identical image?
My workflow yaml file contains this configuration for my docker image:
env:
IMAGE: docker.pkg.github.com/${{ github.repository }}/awesome-module:${{ github.sha }}
I am also trying to find a solution using The GitHub community, but no luck so far. See thread https://github.community/t5/GitHub-Actions/How-to-check-if-a-docker-image-is-already-built-on-GitHub/m-p/56364/highlight/false#M9845