Deploy to staging upon successful CI build

[Closes #8]
This commit is contained in:
Chris Cheetham 2020-07-13 12:24:02 -04:00
Родитель 4a2ce55afe
Коммит ec3a76cc7b
2 изменённых файлов: 24 добавлений и 0 удалений

Просмотреть файл

@ -20,3 +20,19 @@ jobs:
displayName: Build
inputs:
jdkVersionOption: 1.11
- task: CloudFoundryCLIInstall@0
displayName: Install CF CLI
inputs:
cfVersion: 6.51.0
- task: CloudFoundry@1
displayName: Push to Staging
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
inputs:
cfEndpoint: PCFone
skipSSLValidation: true
org: group-steeltoe
space: staging
deploymentOptions: manifest
cfManifest: deploy/cloud-foundry/manifest-staging.yaml
createServices: false
bindServices: false

Просмотреть файл

@ -0,0 +1,8 @@
---
applications:
- name: steeltoe-initializr-configserver
buildpack: https://github.com/cloudfoundry/java-buildpack.git#v4.31.1
memory: 1024M
path: ../../build/libs/Steeltoe.Initializr.ConfigServer-0.1.0-SNAPSHOT.jar
env:
JBP_CONFIG_OPEN_JDK_JRE: '{ jre: { version: 11.+ } }'