File tree Expand file tree Collapse file tree 4 files changed +47
-9
lines changed Expand file tree Collapse file tree 4 files changed +47
-9
lines changed Original file line number Diff line number Diff line change @@ -75,6 +75,16 @@ security-scan:
75
75
script :
76
76
- test "$Docker_Hub_User_Parity" -a "$Docker_Hub_Pass_Parity" ||
77
77
( echo "no docker credentials provided"; exit 1 )
78
+ - echo "Log INFO values for the image that will be built"
79
+ - echo
80
+ buildah bud
81
+ --format=docker
82
+ --build-arg VCS_REF="$CI_COMMIT_SHA"
83
+ --build-arg BUILD_DATE="$(date -u '+%Y-%m-%dT%H:%M:%SZ')"
84
+ --build-arg VERSION="$DEPLOYMENT_TAG"
85
+ --build-arg PORT="$APP_PORT"
86
+ --tag "$DEPLOYMENT_IMAGE_REGISTRY:$DEPLOYMENT_TAG"
87
+ --file src/server/Dockerfile .
78
88
- buildah bud
79
89
--format=docker
80
90
--build-arg VCS_REF="$CI_COMMIT_SHA"
@@ -110,6 +120,19 @@ build-production:
110
120
# https://docs.gitlab.com/ee/ci/examples/authenticating-with-hashicorp-vault/#example
111
121
- export VAULT_TOKEN="$(vault write -field=token auth/$VAULT_AUTH_PATH/login role=$VAULT_AUTH_ROLE jwt=$CI_JOB_JWT)"
112
122
- helm dependency update helm/
123
+ - echo "Log INFO values that will be deployed"
124
+ - echo
125
+ helm secrets upgrade
126
+ --install
127
+ --atomic
128
+ --timeout 300s
129
+ --namespace github-issue-sync
130
+ --values helm/$VALUES_FILE
131
+ --set common.image.tag="$DEPLOYMENT_TAG"
132
+ --set common.containerPort="$APP_PORT"
133
+ --set common.livenessProbe.httpGet.port="$APP_PORT"
134
+ --set common.readinessProbe.httpGet.port="$APP_PORT"
135
+ github-issue-sync helm/
113
136
- helm secrets upgrade
114
137
--install
115
138
--atomic
Original file line number Diff line number Diff line change @@ -6,6 +6,6 @@ version: 0.1.0
6
6
appVersion : " 1.16.0"
7
7
dependencies :
8
8
- name : common
9
- version : " 0.1.1 "
9
+ version : " 0.6.3 "
10
10
repository : " https://paritytech.github.io/helm-charts/"
11
11
Original file line number Diff line number Diff line change @@ -24,11 +24,19 @@ common:
24
24
kubernetes.io/ingress.class : traefik-external
25
25
traefik.ingress.kubernetes.io/router.entrypoints : web,websecure
26
26
traefik.ingress.kubernetes.io/router.tls : " true"
27
- hosts :
27
+
28
+ rules :
28
29
- host : github-issue-sync.parity-stg.parity.io
29
- paths :
30
- - path : /
31
- pathType : ImplementationSpecific
30
+ http :
31
+ paths :
32
+ - path : /
33
+ pathType : ImplementationSpecific
34
+ backend :
35
+ service :
36
+ name : github-issue-sync-common
37
+ port :
38
+ number : 80
39
+
32
40
tls :
33
41
- secretName : github-issue-sync.parity-stg.parity.io
34
42
hosts :
Original file line number Diff line number Diff line change @@ -3,11 +3,16 @@ common:
3
3
# Declare variables to be passed into your templates.
4
4
fullnameOverride : " github-issue-sync"
5
5
6
+ # # Additional common labels on resources
7
+ # #
8
+ extraLabels :
9
+ team : opstooling
10
+
6
11
replicaCount : 1
7
12
8
13
image :
9
14
repository : paritytech/github-issue-sync
10
- pullPolicy : IfNotPresent
15
+ pullPolicy : Always
11
16
# Overrides the image tag whose default is the chart appVersion.
12
17
tag : " latest"
13
18
@@ -28,7 +33,7 @@ common:
28
33
# GREETING: "Warm greetings to"
29
34
DB_USER : " github-issue-sync"
30
35
DB_PASSWORD : " "
31
- DB_HOST : " cloudsql"
36
+ DB_HOST : " github-issue-sync-common- cloudsql"
32
37
DB_PORT : " 5432"
33
38
DB_NAME : " github-issue-sync"
34
39
LOG_FORMAT : json
@@ -61,8 +66,10 @@ common:
61
66
62
67
service :
63
68
type : ClusterIP
64
- port : 80
65
- containerPort : 3000
69
+ ports :
70
+ - name : web
71
+ port : 80
72
+ targetPort : 3000
66
73
67
74
# ingress:
68
75
# enabled: true
You can’t perform that action at this time.
0 commit comments