部署 Spring Native 到 GCP App Engine
appengine {
stage {
//假设使用默认的 nativeBuild 输出路径
artifact = project.buildDir.toPath()
.resolve('native')
.resolve('nativeCompile')
.resolve(project.name)
}
}
//使 nativeBuild 先于 appengineStage 执行
appengineStage.dependsOn tasks.nativeBuildservice: default
runtime: java17
instance_class: F1
entrypoint: ./application #二进制文件的文件名, 默认为项目名
handlers:
- url: /.*
script: auto
secure: always
redirect_http_response_code: 301Last updated