lucacome/docker-image-update-checker

Error pulling/compare with official images

zinen opened this issue · 3 comments

zinen commented

Something changed to last week with one of the docker APIs used in this image it seems. Starting from the 26'th of April I started getting errors when comparing with an official image: base-image: alpine:latest

Does not work: https://auth.docker.io/token?service=registry.docker.io&scope=repository:alpine:pull
Does work: https://auth.docker.io/token?service=registry.docker.io&scope=repository:_/alpine:pull

Notice the _/ near the image name which seems to be the shorthand used by the official images. However the next part of this script must use another API not adhering to the same rule set.

So I changed to base-image: _/alpine:latest in the config of this action and now got further. But hit a new error.

Does not work: https://index.docker.io/v2/_/alpine/tags/list
Does work: https://index.docker.io/v2/alpine/tags/list

Notice now the missing _/ compare to the API URLs above.

zinen commented

Some more digging. Both of thes URL seem to work. Using the key word library
https://auth.docker.io/token?service=registry.docker.io&scope=repository:library/alpine:pull
https://index.docker.io/v2/library/alpine/tags/list

Using base-image: library/alpine:latest in my action patches the problem.

not tested yet