I've seen documentations on how to accomplish this using the App Engine, but nothing on the Compute Engine. Thank you!

- 135
- 2
- 7
-
did you manage to accomplish this task? – czmarc Jun 04 '19 at 19:42
-
I ended up switching to another solution, good luck to you! – Pedro Netto Jul 03 '19 at 16:33
1 Answers
You can write the Compute Engine application using the Cloud Deployment Manager API. https://cloud.google.com/deployment-manager
The last line of the "bitbucket-pipelines.yml" file in this Atlassian blog post is "gcloud app deploy", to update the App Engine application. https://confluence.atlassian.com/bitbucket/deploy-to-google-cloud-900820342.html
# Deploying the application
- gcloud -q app deploy app.yaml
For the Deployment Manager API, use "gcloud deployment-manager deployments update". https://cloud.google.com/sdk/gcloud/reference/deployment-manager/deployments/update
For example:
# Deploying the application
- gcloud -q deployment-manager deployments update my-deployment --config config.yaml
I recommend you have a look at the best practices for using the Deployment Manager API with CI/CD pipelines. https://cloud.google.com/deployment-manager/docs/best-practices/#continuous_integration_ci_continuous_deployment_cd

- 659
- 7
- 14