[英]When deploying a service on Cloud Run, the latest build is not being used
I'm using this command to submit the build:我正在使用此命令提交构建:
gcloud builds submit --tag gcr.io/[my-project]/[my-service]
This successfully submits the build and everything is correct in the Cloud Build tab in the GCP interface.这样就成功提交了构建,并且在 GCP 界面的 Cloud Build 选项卡中一切正常。
And this command to deploy:这个命令部署:
gcloud beta run deploy [my-service]
--service-account [service-account]@[my-project].iam.gserviceaccount.com
--image gcr.io/[my-project]/[my-service]:latest --cpu 2 --memory 8Gi
--timeout 59m59s --vpc-connector=pyston-vpc-connector
--vpc-egress=private-ranges-only
--set-cloudsql-instances=[my-project]:europe-west2:[my-instance]
This does 'successfully' deploy the service, as in there are no errors.这确实“成功”部署了服务,因为没有错误。 However, it is not deploying using the latest build, it uses the last build submitted by someone else in my team.
但是,它不是使用最新版本进行部署,而是使用我团队中其他人提交的最后一个版本。
I have tried deploying in the GCP interface as well but this led to the same outcome.我也尝试在 GCP 界面中进行部署,但这导致了相同的结果。
Any ideas on how t solve this?关于如何解决这个问题的任何想法?
Thanks!谢谢!
我在提交构建时指定了不正确的 Container Registry Repository,这意味着部署找不到最新的映像。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.