我尝试使用Google Cloud构建来构建托管在Github上的spring boot应用程序。我有一个特定的触发器来执行我的项目的Maven发布。
但是我找不到如何配置git,Maven和cloud-build。
答案 0 :(得分:0)
我不熟悉maven版本插件,但希望这会很有用:
https://cloud.google.com/cloud-build/docs/running-builds/automate-builds
https://github.com/GoogleCloudPlatform/cloud-builders/tree/master/mvn/examples/spring_boot
steps:
# run unit tests
- name: 'gcr.io/cloud-builders/mvn'
args: ['test']
# prepare release
- name: 'gcr.io/cloud-builders/mvn'
args: ['release:prepare']
# perform release
- name: 'gcr.io/cloud-builders/mvn'
args: ['release:perform']