最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Bitbucket 管道到 Heroku 失败

网站源码admin32浏览0评论

Bitbucket 管道到 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
回答如下:

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论