@toptal/davinci-ci 2.0.1-alpha-fx-2755-codebase-specific-workflows.9 → 2.0.1-alpha-chore-fx-2805-show-workflow-command.0

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-fx-2755-codebase-specific-workflows.9+9c95d27e",
3
+ "version": "2.0.1-alpha-chore-fx-2805-show-workflow-command.0+47ccd19e",
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-fx-2755-codebase-specific-workflows.120+9c95d27e",
35
+ "@toptal/davinci-cli-shared": "1.5.2-alpha-chore-fx-2805-show-workflow-command.111+47ccd19e",
36
36
  "danger": "^11.0.5",
37
37
  "markdown-table": "^2.0.0"
38
38
  },
39
- "gitHead": "9c95d27e55de918b1bde6ce544f8cd9084242a34"
39
+ "gitHead": "47ccd19e801f84f149fd43fdafbd309f75ad8697"
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-deployment")
47
+ GOOGLE_APPLICATION_CREDENTIALS = credentials("jenkins-helm-deployments-${project}")
48
48
  }
49
49
 
50
50
  steps {
@@ -62,16 +62,7 @@ pipeline {
62
62
 
63
63
  success "== Checked out ${params.HELM_BRANCH} at ${gitCommit()}"
64
64
 
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
-
65
+ chart = 'charts/davinci-app'
75
66
  sh """
76
67
  export HELM_EXPERIMENTAL_OCI=1
77
68
 
@@ -81,23 +72,19 @@ pipeline {
81
72
  gcloud auth application-default print-access-token | helm registry login -u oauth2accesstoken --password-stdin https://us-east1-docker.pkg.dev/toptal-hub/helm-repo
82
73
 
83
74
  kubectl get namespace ${params.RELEASE} >/dev/null 2>&1 || kubectl create namespace ${params.RELEASE}
84
- helm dependency build charts/${chart}
75
+ helm dependency build $chart
85
76
 
86
77
  if helm secrets upgrade \
87
78
  --namespace=${params.RELEASE} \
88
79
  --install --wait --timeout 240s \
89
- -f helm_vars/${chart}/temploy/values.yaml \
90
- -f helm_vars/${chart}/temploy/secrets.yaml \
80
+ -f helm_vars/davinci-app/temploy/values.yaml \
91
81
  -f helm_vars/tls-certs/toptal.rocks/values.yaml \
92
82
  -f helm_vars/tls-certs/toptal.rocks/secrets.yaml \
93
83
  --set image.repository=gcr.io/toptal-hub/${params.REPOSITORY_NAME}-release \
94
84
  --set nameOverride=${params.REPOSITORY_NAME} \
95
85
  --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} \
99
86
  --set ${params.ENV} \
100
- ${params.RELEASE} charts/${chart}
87
+ ${params.RELEASE} $chart
101
88
  then
102
89
  echo "\nHelm deploy succeeded!\n"
103
90