Ped*_*tto 5 bitbucket google-compute-engine docker google-cloud-platform bitbucket-pipelines
我已经看过有关如何使用App Engine完成此操作的文档,但计算引擎上没有任何内容.谢谢!
您可以使用 Cloud Deployment Manager API 编写 Compute Engine 应用程序。 https://cloud.google.com/deployment-manager
这篇 Atlassian 博客文章中“bitbucket-pipelines.yml”文件的最后一行是“gcloud app deploy”,用于更新 App Engine 应用程序。https://confluence.atlassian.com/bitbucket/deploy-to-google-cloud-900820342.html
# Deploying the application
- gcloud -q app deploy app.yaml
Run Code Online (Sandbox Code Playgroud)
对于 Deployment Manager API,请使用“gcloud 部署管理器部署更新”。https://cloud.google.com/sdk/gcloud/reference/deployment-manager/deployments/update
例如:
# Deploying the application
- gcloud -q deployment-manager deployments update my-deployment --config config.yaml
Run Code Online (Sandbox Code Playgroud)
我建议您查看将 Deployment Manager API 与 CI/CD 管道结合使用的最佳实践。https://cloud.google.com/deployment-manager/docs/best-practices/#continuous_integration_ci_continuous_deployment_cd
归档时间: |
|
查看次数: |
657 次 |
最近记录: |