-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
38 lines (35 loc) · 1.04 KB
/
azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
trigger:
branches:
include:
- master
pool:
vmImage: 'ubuntu-latest'
steps:
- task: oc-setup@2
inputs:
connectionType: 'OpenShift Connection Service'
openshiftService: 'openshift-user'
- task: oc-cmd@2
inputs:
connectionType: 'OpenShift Connection Service'
openshiftService: 'openshift-user'
cmd: 'oc new-project dotnet-app'
ignoreFlag: true
- task: oc-cmd@2
inputs:
connectionType: 'OpenShift Connection Service'
openshiftService: 'openshift-user'
cmd: 'oc delete all --all -n dotnet-app'
ignoreFlag: true
- task: oc-cmd@2
inputs:
connectionType: 'OpenShift Connection Service'
openshiftService: 'openshift-user'
cmd: 'oc new-app dotnet:2.1-ubi8~https://github.com/sa-ne/rhel-edge --context-dir=app -l app=demo --name=demo -n dotnet-app'
ignoreFlag: true
- task: oc-cmd@2
inputs:
connectionType: 'OpenShift Connection Service'
openshiftService: 'openshift-user'
cmd: 'oc create -f ${SYSTEM_DEFAULTWORKINGDIRECTORY}/resources/demo-app-service-monitor.yaml'
ignoreFlag: true