Google Artifact Registry for workspace image

I install self-hosted 0.7.0-beta1 on GKE, using gcp-terraform source code.

By default, workspace image is pushed on Google Container Registry.

I want to use artifact registry instead. Is it supported ?


I tried to change params as folloing.

modules/registry/templates/values.tpl
from

      name: "eu.gcr.io/${project}"

to

      name: "asia-northeast1-docker.pkg.dev/${project}

modules/registry/templates/registry-auth.tpl
from

	"auths": {
		"eu.gcr.io": {
			"auth": "${auth}"
		}
	}

to

	"auths": {
		"asia-northeast1-docker.pkg.dev": {
			"auth": "${auth}"
		}
	}

And I create a repository on Artifact Registry; repository name is workspace-images; which was made when using Container Registry.

Also, add “roles/artifactregistry.writer” role to serviceaccount “sa-gitpod-registry” for accessing Google Artifact Registry


I got error when pushing image

  build failed: cannot push workspace image: name invalid: Missing image name. Pushes should be of the form docker push HOST-NAME/PROJECT-ID/REPOSITORY/IMAGE.
                  Error: build failed: cannot push workspace image: name invalid: Missing image name. Pushes should be of the form docker push HOST-NAME/PROJECT-ID/REPOSITORY/IMAGE

Not sure it’s my mistake or Artifact Registry is not supported.

I appreciate it if someone would give me any info.
Thank you.