GoogleContainerTools / jib

🏗 Build container images for your Java applications.
Apache License 2.0
13.58k stars 1.43k forks source link

Google Container Registry Migration to Google Artifact Registry #4286

Closed mtando closed 2 months ago

mtando commented 2 months ago

Environment:

Description of the issue: So Google's Container Registry is getting deprecated and shutdown in Mar 2025. I am trying to move to Google's Artifact Registry.

Docker login to the new artifact registry is always succesful but run: gradle jib --image=asia-southeast2-docker.pkg.dev/google-project-311914/myproject-be:${{ env.RELEASE_VERSION }}

would always result in:

Task :jib FAILED FAILURE: Build failed with an exception.

I have enabled Google Artifact Registry, made sure the correct folder is created, also activated credentials using service account: gcloud auth configure-docker asia-southeast2 gcloud auth activate-service-account

I can always successfully dockerize image to Google Container Registry

Expected behavior: Succesfully build image in specified Google Artifact Registry