手动部署 CircleCI 构建到 Cloud Foundry

Deploying manually a CircleCI build to Cloud Foundry

我是 CircleCI 的新手,想知道如何手动将 CircleCI 构建部署到 Pivotal Cloud Foundry

说我的 CircleCI 构建通过(测试等)因此 "known to be good" 我想将它部署到 Cloud Foundry。

有没有办法手动而不是连续部署 CircleCI 构建?

您可以在 CircleCI 中定义 build artifacts,您可以在构建通过后直接下载,然后 cf push 从您的机器上下载它们。

反正我还是建议继续deploy from a certain branch, e.g. staging or production. You may then trigger the builds by merging into that branch. To get started, have a look at the CircleCI documentation for Bluemix/PWS.

我举个例子circle.yml

machine:
  java:
    version: oraclejdk8
dependencies:
  pre:
    - curl -v -L -o cf-cli_amd64.deb 'https://cli.run.pivotal.io/stable?release=debian64&source=github'
    - sudo dpkg -i cf-cli_amd64.deb
    - cf -v
deployment:
  staging:
    branch: master
    commands:
      - cf api https://api.run.pivotal.io
      - cf auth $CF_USER $CF_PASSWORD
      - cf target -o [org] -s [space]
      - cf push [app-name]