I am using wercker. I am trying to push the container for GCR in th internal/docker-push. But error message is displayd as belog:
Error interacting with this repository: gcr.io/my-gcr-project/wercker PUT https://gcr.io/v1/repositories/my-gcr-project/wercker/ returned 401
My wercker.yml is
steps:
- internal/docker-push:
username: _json_key
password: $GCR_JSON_KEY_FILE
registry: https://gcr.io
repository: gcr.io/my-gcr-project/my-image-name
tag: test
AND $GCR_JSON_KEY_FILE is Wercker Environment variables
It sets as follows : (Values were masked.)
GCR_JSON_KEY_FILE:
{
"type": "",
"project_id": "",
"private_key_id": "",
"private_key": "",
"client_email": "",
"client_id": "",
"auth_uri": "",
"token_uri": "",
"auth_provider_x509_cert_url": "",
"client_x509_cert_url": ""
}
What should I do?