管道到 Heroku 失败"/>
Bitbucket 管道到 Heroku 失败
我试图从 BitBucket 创建一个将 Master 分支部署到 Heroku 的管道。我做错了什么?! 对于模板,我使用了。
拜托-感谢收到的任何想法/帮助:)
流水线文件:
clone:
depth: full
pipelines:
default:
- step:
caches:
- node
script:
# This gets executed on every push by a developer
- npm install
- npm test
branches:
development:
- step:
name: 'Deployment to staging'
deployment: staging
caches:
- node
script:
# This gets executed when merging a PR to dev branch
- npm install
- npm test
# We need to compile code, code is typically stored in
# a destination directory.
# Replace with your own command
#- npm run build:staging
# We need to commit build in the image before pushing
- git add -A
- git config --global user.email "XXXXXXXXXXXX"
- git config --global user.name "XXXXXXXXXXXX"
- git commit -m "staging build"
# Finally, we push to Heroku
- git push -f https://heroku:[email protected]/XXXXXXXXXXXX.dev.git development:master
master:
- step:
name: 'Deployment to live'
deployment: production
caches:
- node
script:
# This gets executed when merging a PR to master branch
- npm --loglevel=error install
- npm-check-updates -u
- npm test
- npm run build:master
- git add -A
- git config --global user.email "XXXXXXXXXXXX"
- git config --global user.name "XXXXXXXXXXXX"
- git commit -m "production build"
- git push -f https://heroku:[email protected]/XXXXXXXXXXXX.git master
回答如下:
更多推荐
Bitbucket 管道到 Heroku 失败
本文发布于:2024-05-31 04:10:21,感谢您对本站的认可!
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
发布评论