GCP GCR
Last updated
Was this helpful?
Last updated
Was this helpful?
Was this helpful?
Go to your Project
Go to Container Registry
Copy the Full Repository Name
Given this Full Repository: gcr.io/project-name/example
Your Repository will be: gcr.io
and your Image will be: project-name/example
Follow GCP Steps to generate this file.
Please Verify that your Google Service Account
has the right permissions to manage your container registry
You will end with a file that contains something similar
{
"type": "service_account",
"project_id": "project-name",
"private_key_id": "12345abcdef12345",
"private_key": "-----BEGIN PRIVATE KEY-----\n[...]\n-----END PRIVATE KEY-----\n",
"client_email": "[email protected]",
"client_id": "1234567890",
"auth_uri": "https://accounts.google.com/o/oauth2/auth",
"token_uri": "https://oauth2.googleapis.com/token",
"auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
"client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/example%40project-name.iam.gserviceaccount.com"
}
{
[...]
"docker_repository": "gcr.io",
"docker_image": "project-name/repository-name",
"docker_tag": "v1",
"private_username": "_json_key",
"private_token": "<The Content of JSON key file as JSON String>",
[...]
}
The Private Token will look something like this
{
[...]
"private_token": "{\"type\": \"service_account\", \"project_id\": \"project-name\", \"private_key_id\": \"12345abcdef12345\", \"private_key\": \"-----BEGIN PRIVATE KEY-----\\n[...]\\n-----END PRIVATE KEY-----\\n\", \"client_email\": \"[email protected]\", \"client_id\": \"1234567890\", \"auth_uri\": \"https://accounts.google.com/o/oauth2/auth\", \"token_uri\": \"https://oauth2.googleapis.com/token\", \"auth_provider_x509_cert_url\": \"https://www.googleapis.com/oauth2/v1/certs\", \"client_x509_cert_url\": \"https://www.googleapis.com/robot/v1/metadata/x509/example%40project-name.iam.gserviceaccount.com\"}",
[...]
}
From our Dashboard, The Private registry token will be the content of your JSON key file
You can copy the content directly without Stringify it