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.
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.
Any ideas on how t solve this?
Thanks!