我正在尝试使用 bitbucket 管道在 heroku 中进行部署,并使用 spring-boot 创建了一个简单的 Web 应用程序。
我想知道你们中是否有人对“bitbucket-pipelines.yml”文件中需要它有什么想法?这是我第一次使用带有 bitbucket 管道的 heroku,我很迷茫。
我的文件看起来像这样:
image: maven:3.3.9
clone:
depth: full
pipelines:
default:
- step:
script: # Modify the commands below to build your repository.
- mvn -B clean install -P heroku # -B batch mode makes Maven less verbose
- git push https://heroku:$HEROKU_API_KEY@git.heroku.com/$HEROKU_APP_NAME.git HEAD