我正在使用wercker。我正在尝试在内部/docker-push 中推送 GCR 的容器。但是错误消息显示为belog:
Error interacting with this repository: gcr.io/my-gcr-project/wercker PUT https://gcr.io/v1/repositories/my-gcr-project/wercker/ returned 401
我的 wercker.yml 是
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
和 $GCR_JSON_KEY_FILE 是 Wercker 环境变量
它设置如下:(值被屏蔽。)
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": ""
}
我应该怎么办?