docker / scout-action

Docker Scout GitHub Action
https://docker.com/products/docker-scout
Other
86 stars 27 forks source link

Error: could not get the image ***/alphafold:pr-237 #4

Closed pozsa closed 1 year ago

pozsa commented 1 year ago

Any ideas about what am I doing wrong here? https://github.com/paulscherrerinstitute/alphafold-on-fire/actions/runs/5510604867/jobs/10045052401?pr=237

sbe-arg commented 1 year ago

I believe you need credentials for the private registry in the scout action https://github.com/docker/scout-action#login-to-a-registry-to-pull-private-images-non-docker-hub here https://github.com/paulscherrerinstitute/alphafold-on-fire/blob/scout/.github/workflows/build-and-push-backend.yaml#L71-L81

pozsa commented 1 year ago

I've tried that here: https://github.com/paulscherrerinstitute/alphafold-on-fire/actions/runs/5509254620/workflow, but got the same error: https://github.com/paulscherrerinstitute/alphafold-on-fire/actions/runs/5509254620/jobs/10041696438

This had no errors, but I had to comment out the 'image': https://github.com/paulscherrerinstitute/alphafold-on-fire/actions/runs/5509558117/workflow. It was capable of pulling the 'to' image from the registry though, so I think docker/login-action works for the auth part.

sbe-arg commented 1 year ago

I tried to use analyzing images from github registry locally today without luck. If you are also using github might be related.

pozsa commented 1 year ago

I tried to use analyzing images from github registry locally today without luck. If you are also using github might be related.

Do you get the same error?

cdupuis commented 1 year ago

@pozsa, could it be that there is more than one tag passed into the scout-action? See the following screenshot where GitHub prints the parameters of the step:

image
pozsa commented 1 year ago

@cdupuis thanks for the tip changing to image: ${{ secrets.REGISTRY_LOGIN_SERVER }}/alphafold:${{ steps.meta.outputs.version }} solved the issue

cdupuis commented 1 year ago

@pozsa , thanks for the confirmation.