Bitbucket 管道到 Heroku 失败

编程入门 行业动态 更新时间:2024-10-05 07:19:49

Bitbucket <a href=https://www.elefans.com/category/jswz/34/1771075.html style=管道到 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小时内删除。
本文标签:管道   Bitbucket   Heroku

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!