-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.yml
115 lines (87 loc) · 3.35 KB
/
variables.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
parameters:
- name: devHelmOverrideValuesIndividuals
type: object
default:
- "image.pullPolicy=Always,pod.database.connection_string="
- $(MONGODB_CONNECTION_STRING_DEV)
- ",pod.idp.jwksURL="
- $(JWKS_URL)
- ",pod.k3s.dockerImage="
- $(K3S_DOCKER_IMAGE)
- name: testHelmOverrideValuesIndividuals
type: object
default:
- "image.pullPolicy=Always,pod.database.connection_string="
- $(MONGODB_CONNECTION_STRING_TEST)
- ",pod.idp.jwksURL="
- $(JWKS_URL)
- ",pod.k3s.dockerImage="
- $(K3S_DOCKER_IMAGE)
- name: prodHelmOverrideValuesIndividuals
type: object
default:
- "image.pullPolicy=Always,pod.database.connection_string="
- $(MONGODB_CONNECTION_STRING_PROD)
- ",pod.idp.jwksURL="
- $(JWKS_URL)
- ",pod.k3s.dockerImage="
- $(K3S_DOCKER_IMAGE)
variables:
- name: artifactVersion
${{ if eq(variables['Build.SourceBranch'], 'refs/heads/main') }}:
value: latest
${{ if not(eq(variables['Build.SourceBranch'], 'refs/heads/main')) }}:
value: $(GitVersion.SemVer)
- name: linuxVmImage
value: "ubuntu-20.04"
- name: contractScriptFilePath
value: "$(system.defaultWorkingDirectory)/scripts/compile-protobuf.sh"
- name: contractScriptworkingDirectory
value: "$(system.defaultWorkingDirectory)/scripts"
- name: dockerContainerRegistry
value: "Decentralized Cloud Docker Hub"
- name: dockerRepositoryName
value: "decentralizedcloud/edge-cluster"
- name: dockerBuildFilePath
value: "$(system.defaultWorkingDirectory)/docker/Dockerfile.build"
- name: dockerBuildContext
value: "$(system.defaultWorkingDirectory)"
- name: testDockerComposeFilePath
value: "$(system.defaultWorkingDirectory)/docker/docker-compose-test.yml"
- name: coverallsServiceName
value: $(COVERALLS_SERVICE_NAME)
- name: coverallsRepoToken
value: $(COVERALLS_REPO_TOKEN)
- name: helmChartsDirectoryPath
value: "$(system.defaultWorkingDirectory)/helm-charts"
- name: helmArtifactName
value: "helm"
- name: shouldPublishHelmChart
? ${{ if or(eq(variables['Build.SourceBranch'], 'refs/heads/main'), startsWith(variables['Build.SourceBranch'], 'refs/tags/v')) }}
: value: true
? ${{ if not(or(eq(variables['Build.SourceBranch'], 'refs/heads/main'), startsWith(variables['Build.SourceBranch'], 'refs/tags/v'))) }}
: value: false
- name: buildAndPushHelmChartDockerFilePath
value: "$(system.defaultWorkingDirectory)/docker/Dockerfile.buildAndPushHelmChart"
- name: buildAndPushHelmChartDockerBuildContext
value: "$(system.defaultWorkingDirectory)"
- name: githubAccessCredentials
value: $(GITHUB_ACCESS_CREDENTIAL)
- name: kubernetesServiceConnection
value: $(KUBERNETES_SERVICE_CONNECTION)
- name: devNamespace
value: "dev"
- name: testNamespace
value: "test"
- name: prodNamespace
value: "prod"
- name: chartPath
value: "$(System.DefaultWorkingDirectory)/helm/edge-cluster-0.2.11.tgz"
- name: releaseName
value: "edge-cluster"
- name: devHelmOverrideValues
value: ${{ join('', parameters.devHelmOverrideValuesIndividuals) }}
- name: testHelmOverrideValues
value: ${{ join('', parameters.testHelmOverrideValuesIndividuals) }}
- name: prodHelmOverrideValues
value: ${{ join('', parameters.prodHelmOverrideValuesIndividuals) }}