-
Notifications
You must be signed in to change notification settings - Fork 39
/
Copy pathazure-pipelines.yml
38 lines (32 loc) · 943 Bytes
/
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
38
trigger:
- master
pool:
vmImage: 'ubuntu-latest'
resources:
- repo: self
stages:
- stage: Deploy
displayName: Deploy stage
jobs:
- deployment: Deploy
displayName: Deploy
environment: 'AdminTurnedDevOpsSkylinesAcademyCode-1867.default'
strategy:
runOnce:
deploy:
steps:
- task: CopyFiles@2
inputs:
SourceFolder: 'KubernetesManifest'
Contents: '**'
TargetFolder: '$(Build.ArtifactStagingDirectory)'
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)'
ArtifactName: 'drop'
- task: KubernetesManifest@0
displayName: Deploy to Kubernetes cluster
inputs:
action: deploy
manifests: |
$(Build.ArtifactStagingDirectory)/KubernetesManifest/nginx.yml