Skip to content

Commit d3a7041

Browse files
committed
Reworked Pipeline
1 parent 68576bd commit d3a7041

File tree

1 file changed

+15
-50
lines changed

1 file changed

+15
-50
lines changed
Lines changed: 15 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
1-
# Starter pipeline
2-
# Start with a minimal pipeline that you can customize to build and deploy your code.
3-
# Add steps that build, run tests, deploy, and more:
4-
# https://aka.ms/yaml
5-
61
trigger:
7-
- main
2+
batch: true
3+
branches:
4+
include:
5+
- main
6+
paths:
7+
include:
8+
- .devops/workshop-release.yml
9+
- code/complete/GraphQL
10+
11+
pr: none
812

913
pool:
1014
vmImage: ubuntu-latest
@@ -14,10 +18,12 @@ steps:
1418
displayName: "Install Docker"
1519
inputs:
1620
dockerVersion: '17.09.0-ce'
21+
1722
- task: KubectlInstaller@0
1823
displayName: "Install Kubectl"
1924
inputs:
2025
kubectlVersion: 'latest'
26+
2127
- task: Docker@2
2228
displayName: "Build Host Container"
2329
inputs:
@@ -26,6 +32,7 @@ steps:
2632
command: 'buildAndPush'
2733
Dockerfile: 'code/complete/GraphQL/dockerfile'
2834
buildContext: 'code/complete/GraphQL'
35+
2936
- task: Kubernetes@1
3037
displayName: "Deploy Demo Service"
3138
inputs:
@@ -41,7 +48,7 @@ steps:
4148
metadata:
4249
name: ccc-oss-graphqlworkshop
4350
spec:
44-
replicas: 3
51+
replicas: 2
4552
selector:
4653
matchLabels:
4754
app: ccc-oss-graphqlworkshop
@@ -82,46 +89,4 @@ steps:
8289
app: ccc-oss-graphqlworkshop
8390
secretType: 'dockerRegistry'
8491
containerRegistryType: 'Azure Container Registry'
85-
- task: Kubernetes@1
86-
displayName: "Deploy Demo Ingress Configuration"
87-
inputs:
88-
connectionType: 'Kubernetes Service Connection'
89-
kubernetesServiceEndpoint: '$(aks-cluster)'
90-
command: 'apply'
91-
useConfigurationFile: true
92-
configurationType: 'inline'
93-
inline: |
94-
apiVersion: networking.k8s.io/v1
95-
kind: Ingress
96-
metadata:
97-
name: ccc-oss-graphqlworkshop-ingress
98-
namespace: ccc-oss
99-
annotations:
100-
kubernetes.io/ingress.class: nginx
101-
nginx.ingress.kubernetes.io/proxy-buffering: "on"
102-
nginx.ingress.kubernetes.io/proxy-buffer-size: "128k"
103-
nginx.ingress.kubernetes.io/proxy-buffers: "4 256k"
104-
nginx.ingress.kubernetes.io/proxy-busy-buffers-size: "256k"
105-
nginx.ingress.kubernetes.io/client-header-buffer-size: "64k"
106-
nginx.ingress.kubernetes.io/http2-max-field-size: "16k"
107-
nginx.ingress.kubernetes.io/http2-max-header-size: "128k"
108-
nginx.ingress.kubernetes.io/large-client-header-buffers: "128k"
109-
nginx.ingress.kubernetes.io/proxy-buffers-number: "4"
110-
spec:
111-
tls:
112-
- hosts:
113-
- workshop.chillicream.cloud
114-
secretName: management-tls
115-
rules:
116-
- host: workshop.chillicream.cloud
117-
http:
118-
paths:
119-
- path: /
120-
pathType: Prefix
121-
backend:
122-
service:
123-
name: ccc-oss-graphqlworkshop
124-
port:
125-
number: 80
126-
secretType: 'dockerRegistry'
127-
containerRegistryType: 'Azure Container Registry'
92+

0 commit comments

Comments
 (0)