We have a .NET 5 web application that is built in Bitbucket Pipelines and then has the Docker image pushed into the GCP Registry
Within Octopus Cloud I have setup a deployment using the gcloud CLI to deploy an image to Cloud Run e.g.
gcloud run deploy $ProjectName --image=$ImageName --platform managed --region europe-west2 --allow-unauthenticated --set-env-vars=NODE_ENV=‘production’
Currently I have to hard code the Docker image name and manually trigger the deployment in Octopus
My questions are
- How can I have Bitbucket Pipelines trigger the deployment in Octopus Cloud? Is this simply a case of calling the Octopus API from Bitbucket Pipeliens?
- How can I pass in the Docker image name from Bitbucket Pipelines to be used by Octopus Cloud? My thinking is that this should be passed in externally and then used by Octopus to ensure the same image is deployed to all environments as it’s promoted