Skip to content

Commit a484aa6

Browse files
committed
Fix YAML linting errors
1 parent ba64026 commit a484aa6

File tree

1 file changed

+79
-77
lines changed

1 file changed

+79
-77
lines changed

azure-pipelines.yaml

Lines changed: 79 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -1,84 +1,86 @@
1+
---
12
trigger:
2-
- main
3+
- main
34

45
variables:
5-
- name: major
6-
value: 0
7-
- name: minor
8-
value: 1
9-
- name: patch
10-
value: 0
11-
- name: DOTNET_SKIP_FIRST_TIME_EXPERIENCE
12-
value: true
13-
- name: DOTNET_CLI_TELEMETRY_OPTOUT
14-
value: 1
6+
- name: major
7+
value: 0
8+
- name: minor
9+
value: 1
10+
- name: patch
11+
value: 0
12+
- name: DOTNET_SKIP_FIRST_TIME_EXPERIENCE
13+
value: true
14+
- name: DOTNET_CLI_TELEMETRY_OPTOUT
15+
value: 1
1516

1617
name: $(major).$(minor).$(patch)-$(Rev:r)
1718

1819
stages:
19-
- stage: assemble
20-
displayName: Assemble
21-
jobs:
22-
- job: test
23-
displayName: Test
24-
pool:
25-
vmImage: ubuntu-latest
26-
steps:
27-
- task: UseDotNet@2
28-
displayName: 'Use .NET Core SDK 5.0'
29-
inputs:
30-
packageType: sdk
31-
version: 5.0.x
32-
- task: DotNetCoreCLI@2
33-
displayName: Unit Test
34-
inputs:
35-
command: test
36-
- job: kubernetes
37-
displayName: Kubernetes
38-
pool:
39-
vmImage: ubuntu-latest
40-
steps:
41-
- task: ShellScript@2
42-
displayName: Generate Staging Manifest
43-
inputs:
44-
scriptPath: ./yttw.sh
45-
args: >
46-
-f kubernetes
47-
-v image_tag=$(Build.BuildId)
48-
-v dotnet_environment=Staging
49-
--output-files manifests/staging
50-
- task: ShellScript@2
51-
displayName: Generate Production Manifest
52-
inputs:
53-
scriptPath: ./yttw.sh
54-
args: >
55-
-f kubernetes
56-
-v image_tag=$(Build.BuildId)
57-
-v replica_count=2
58-
-v dotnet_environment=Production
59-
--output-files manifests/production
60-
- task: PublishPipelineArtifact@1
61-
displayName: Publish Manifests
62-
inputs:
63-
targetPath: manifests
64-
artifactName: manifests
65-
- stage: Deploy
66-
displayName: Deploy
67-
dependsOn: assemble
68-
condition:
69-
not(eq(variables['build.reason'], 'PullRequest'))
70-
jobs:
71-
- job: push
72-
displayName: Push
73-
pool:
74-
vmImage: ubuntu-latest
75-
steps:
76-
- task: Docker@2
77-
displayName: Build and Push
78-
inputs:
79-
command: buildAndPush
80-
containerRegistry: SteeltoeContainerRegistry
81-
repository: net-core-tool-service
82-
tags: |
83-
$(Build.BuildId)
84-
latest
20+
- stage: assemble
21+
displayName: Assemble
22+
jobs:
23+
- job: test
24+
displayName: Test
25+
pool:
26+
vmImage: ubuntu-latest
27+
steps:
28+
- task: UseDotNet@2
29+
displayName: 'Use .NET Core SDK 5.0'
30+
31+
inputs:
32+
packageType: sdk
33+
version: 5.0.x
34+
- task: DotNetCoreCLI@2
35+
displayName: Unit Test
36+
inputs:
37+
command: test
38+
- job: kubernetes
39+
displayName: Kubernetes
40+
pool:
41+
vmImage: ubuntu-latest
42+
steps:
43+
- task: ShellScript@2
44+
displayName: Generate Staging Manifest
45+
inputs:
46+
scriptPath: ./yttw.sh
47+
args: >
48+
-f kubernetes
49+
-v image_tag=$(Build.BuildId)
50+
-v dotnet_environment=Staging
51+
--output-files manifests/staging
52+
- task: ShellScript@2
53+
displayName: Generate Production Manifest
54+
inputs:
55+
scriptPath: ./yttw.sh
56+
args: >
57+
-f kubernetes
58+
-v image_tag=$(Build.BuildId)
59+
-v replica_count=2
60+
-v dotnet_environment=Production
61+
--output-files manifests/production
62+
- task: PublishPipelineArtifact@1
63+
displayName: Publish Manifests
64+
inputs:
65+
targetPath: manifests
66+
artifactName: manifests
67+
- stage: Deploy
68+
displayName: Deploy
69+
dependsOn: assemble
70+
condition:
71+
not(eq(variables['build.reason'], 'PullRequest'))
72+
jobs:
73+
- job: push
74+
displayName: Push
75+
pool:
76+
vmImage: ubuntu-latest
77+
steps:
78+
- task: Docker@2
79+
displayName: Build and Push
80+
inputs:
81+
command: buildAndPush
82+
containerRegistry: SteeltoeContainerRegistry
83+
repository: net-core-tool-service
84+
tags: |
85+
$(Build.BuildId)
86+
latest

0 commit comments

Comments
 (0)