Clarification on how image tag is generated for Git deployments

When deploying a Docker container from a Git repo, how does Qovery generate the image tag in the configured container registries? ie lines like these in the logs:

Checking if image already exists remotely ....ecr.eu-central-1.amazonaws.com/xxxxxxxxxxxxxx

How is the image tag generated (the xxxxxxxxxxxxxx)? I assumed it would use the Git commit, but that doesn’t seem to be the case.

Hi @shalvah-gs ,

Indeed, we don’t use the git commit ID to tag the image but an internal Qovery ID. You can find the detailed code here.

image_to_build.image_name() details is here.

If you explain to me what you need, I’ll try to guide you in a more precise way.