Added azure pipeline deploy files
This commit is contained in:
parent
dacd362554
commit
5f38bab945
@ -37,10 +37,17 @@ jobs:
|
||||
feedsToUse: config
|
||||
nugetConfigPath: src/NuGet.config
|
||||
- task: CopyFiles@2
|
||||
displayName: 'Copy OpenShift App Build Template'
|
||||
inputs:
|
||||
sourceFolder: '$(Build.SourcesDirectory)/build/aro'
|
||||
contents: 'openshift-app-build-template.yml'
|
||||
targetFolder: $(Build.ArtifactStagingDirectory)
|
||||
- task: CopyFiles@2
|
||||
displayName: 'Copy OpenShift Web App Deploy Template'
|
||||
inputs:
|
||||
sourceFolder: '$(Build.SourcesDirectory)/deploy/aro'
|
||||
contents: 'openshift-webapp-deploy-template.yml'
|
||||
targetFolder: $(Build.ArtifactStagingDirectory)
|
||||
- task: PublishBuildArtifacts@1
|
||||
displayName: 'Publish Artifact: drop'
|
||||
|
||||
|
@ -1,3 +1,26 @@
|
||||
variables:
|
||||
OpenShiftProject: development
|
||||
AppName: basketapi
|
||||
OpenShiftServiceConnection: 'OpenShift on ARO'
|
||||
resources:
|
||||
pipelines:
|
||||
- pipeline: BasketApiBuild
|
||||
source: Basket-API-Build
|
||||
stages:
|
||||
- stage: test
|
||||
dependsOn: test2
|
||||
- stage: $(OpenShiftProject)
|
||||
displayName: Development
|
||||
jobs:
|
||||
- job: Configuration
|
||||
pool:
|
||||
vmImage: 'windows-latest'
|
||||
steps:
|
||||
- task: redhat.openshift-vsts.oc-setup-task.oc-setup@2
|
||||
displayName: 'oc-setup '
|
||||
inputs:
|
||||
openshiftService: $(OpenShiftServiceConnection)
|
||||
- script: 'oc project $(OpenShiftProject)'
|
||||
failOnStderr: true
|
||||
displayName: 'Set Project Context'
|
||||
- script: 'oc process -f $(Pipeline.Workspace)/openshift-webapp-deploy-template.yml -p APPLICATION_NAME=$(AppName) | oc apply -f-'
|
||||
failOnStderr: true
|
||||
displayName: 'Ensure OpenShift DeploymentConfig and Service'
|
Loading…
x
Reference in New Issue
Block a user