@toptal/davinci-ci 2.0.1-alpha-dependabot-npm-and-yarn-google-cloud-storage-6.0.0.1 → 2.0.1-alpha-fx-2815-update-rules-in-davinci-syntax-acourding-to-decision-made-in-rfc-25.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@toptal/davinci-ci",
3
- "version": "2.0.1-alpha-dependabot-npm-and-yarn-google-cloud-storage-6.0.0.1+1d32f847",
3
+ "version": "2.0.1-alpha-fx-2815-update-rules-in-davinci-syntax-acourding-to-decision-made-in-rfc-25.11+bb3fce26",
4
4
  "description": "Continuos integrations tools for frontend projects",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -32,9 +32,9 @@
32
32
  "dependencies": {
33
33
  "@commitlint/cli": "^16.2.4",
34
34
  "@commitlint/config-conventional": "^16.0.0",
35
- "@toptal/davinci-cli-shared": "1.5.2-alpha-dependabot-npm-and-yarn-google-cloud-storage-6.0.0.112+1d32f847",
35
+ "@toptal/davinci-cli-shared": "1.5.2-alpha-fx-2815-update-rules-in-davinci-syntax-acourding-to-decision-made-in-rfc-25.122+bb3fce26",
36
36
  "danger": "^11.0.5",
37
37
  "markdown-table": "^2.0.0"
38
38
  },
39
- "gitHead": "1d32f8472b41f6a282ec33d9bc4c3ae26f73f8f6"
39
+ "gitHead": "bb3fce26724ecdd1b6a1cb376637770398828eb6"
40
40
  }
@@ -44,7 +44,7 @@ pipeline {
44
44
  agent { docker { image "gcr.io/toptal-hub/helm:${helmVersion}" } }
45
45
 
46
46
  environment {
47
- GOOGLE_APPLICATION_CREDENTIALS = credentials("jenkins-helm-deployments-${project}")
47
+ GOOGLE_APPLICATION_CREDENTIALS = credentials("jenkins-deployment")
48
48
  }
49
49
 
50
50
  steps {
@@ -62,7 +62,16 @@ pipeline {
62
62
 
63
63
  success "== Checked out ${params.HELM_BRANCH} at ${gitCommit()}"
64
64
 
65
- chart = 'charts/davinci-app'
65
+ configuration = new helpers.JobHelper().readYaml('configuration.yml')
66
+ configurationName = "${params.REPOSITORY_NAME}-temploy-deployment"
67
+ data = configuration[configurationName]
68
+
69
+ if (data) {
70
+ chart = data.chart
71
+ } else {
72
+ chart = 'davinci-app'
73
+ }
74
+
66
75
  sh """
67
76
  export HELM_EXPERIMENTAL_OCI=1
68
77
 
@@ -72,19 +81,23 @@ pipeline {
72
81
  gcloud auth application-default print-access-token | helm registry login -u oauth2accesstoken --password-stdin https://us-east1-docker.pkg.dev/toptal-hub/helm-repo
73
82
 
74
83
  kubectl get namespace ${params.RELEASE} >/dev/null 2>&1 || kubectl create namespace ${params.RELEASE}
75
- helm dependency build $chart
84
+ helm dependency build charts/${chart}
76
85
 
77
86
  if helm secrets upgrade \
78
87
  --namespace=${params.RELEASE} \
79
88
  --install --wait --timeout 240s \
80
- -f helm_vars/davinci-app/temploy/values.yaml \
89
+ -f helm_vars/${chart}/temploy/values.yaml \
90
+ -f helm_vars/${chart}/temploy/secrets.yaml \
81
91
  -f helm_vars/tls-certs/toptal.rocks/values.yaml \
82
92
  -f helm_vars/tls-certs/toptal.rocks/secrets.yaml \
83
93
  --set image.repository=gcr.io/toptal-hub/${params.REPOSITORY_NAME}-release \
84
94
  --set nameOverride=${params.REPOSITORY_NAME} \
85
95
  --set-string image.tag=${params.TAG} \
96
+ --set davinci-app.image.repository=gcr.io/toptal-hub/${params.REPOSITORY_NAME}-release \
97
+ --set davinci-app.nameOverride=${params.REPOSITORY_NAME} \
98
+ --set-string davinci-app.image.tag=${params.TAG} \
86
99
  --set ${params.ENV} \
87
- ${params.RELEASE} $chart
100
+ ${params.RELEASE} charts/${chart}
88
101
  then
89
102
  echo "\nHelm deploy succeeded!\n"
90
103