Closed MarceloBuzzettiToolbox closed 5 months ago
Hi there - could you please provide the debug output for the complete GitHub Actions workflow run?
I'll enable that and send to you
What are the values for DOCKER_REGISTRY
, DOCKER_NAMESPACE
, and DOCKER_REPOSITORY
? In general, these are not "secrets", so you might want to use vars
instead so they aren't masked in the output. The value should be something like:
us-docker.pkg.dev/gcr-cleaner/gcr-cleaner/gcr-cleaner
What are the values for
DOCKER_REGISTRY
,DOCKER_NAMESPACE
, andDOCKER_REPOSITORY
? In general, these are not "secrets", so you might want to usevars
instead so they aren't masked in the output. The value should be something like:us-docker.pkg.dev/gcr-cleaner/gcr-cleaner/gcr-cleaner
These are values about the repository on docker hub. I thought it was necessary to keep them secret. Thanks for the feedback. I'll use them as vars instead of secret
TL;DR
I try to set docker registry, docker.io, secret and use to deploy but not worked. image: "${{ secrets.DOCKER_REGISTRY }}/${{ secrets.DOCKER_NAMESPACE }}/${{ secrets.DOCKER_REPOSITORY }}:latest"
When i created it as repository variable worked image: "${{ vars.DOCKER_REGISTRY }}/${{ secrets.DOCKER_NAMESPACE }}/${{ secrets.DOCKER_REPOSITORY }}:latest"
Before asking me, I created the secret and repository variable DOCKER_REGISTRY correctly.
Expected behavior
Run using registry as secret
Observed behavior
Just work when used as repository variable
Action YAML
Log output
Additional information
No response