CI: k8s: use strings for commit ids

This commit is contained in:
Igor Scheller 2021-04-11 17:52:53 +02:00
parent 2cab0788e1
commit 9349634802
1 changed files with 6 additions and 6 deletions

View File

@ -66,7 +66,7 @@ metadata:
labels: labels:
app: <CI_PROJECT_PATH_SLUG> app: <CI_PROJECT_PATH_SLUG>
environment: <CI_ENVIRONMENT_SLUG> environment: <CI_ENVIRONMENT_SLUG>
commit: <CI_COMMIT_SHORT_SHA> commit: '<CI_COMMIT_SHORT_SHA>'
spec: spec:
type: ClusterIP type: ClusterIP
ports: ports:
@ -86,7 +86,7 @@ metadata:
labels: labels:
app: <CI_PROJECT_PATH_SLUG> app: <CI_PROJECT_PATH_SLUG>
environment: <CI_ENVIRONMENT_SLUG> environment: <CI_ENVIRONMENT_SLUG>
commit: <CI_COMMIT_SHORT_SHA> commit: '<CI_COMMIT_SHORT_SHA>'
spec: spec:
replicas: <CI_REPLICAS> replicas: <CI_REPLICAS>
selector: selector:
@ -104,11 +104,11 @@ spec:
app: <CI_PROJECT_PATH_SLUG> app: <CI_PROJECT_PATH_SLUG>
environment: <CI_ENVIRONMENT_SLUG> environment: <CI_ENVIRONMENT_SLUG>
tier: application tier: application
commit: <CI_COMMIT_SHORT_SHA> commit: '<CI_COMMIT_SHORT_SHA>'
annotations: annotations:
app.gitlab.com/app: <CI_PROJECT_PATH_SLUG> app.gitlab.com/app: <CI_PROJECT_PATH_SLUG>
app.gitlab.com/env: <CI_ENVIRONMENT_SLUG> app.gitlab.com/env: <CI_ENVIRONMENT_SLUG>
commit: <CI_COMMIT_SHORT_SHA> commit: '<CI_COMMIT_SHORT_SHA>'
spec: spec:
initContainers: initContainers:
- image: <CI_IMAGE> - image: <CI_IMAGE>
@ -163,7 +163,7 @@ metadata:
labels: labels:
app: <CI_PROJECT_PATH_SLUG> app: <CI_PROJECT_PATH_SLUG>
environment: <CI_ENVIRONMENT_SLUG> environment: <CI_ENVIRONMENT_SLUG>
commit: <CI_COMMIT_SHORT_SHA> commit: '<CI_COMMIT_SHORT_SHA>'
annotations: annotations:
prometheus.io/port: '80' prometheus.io/port: '80'
prometheus.io/scrape: 'true' prometheus.io/scrape: 'true'
@ -190,7 +190,7 @@ metadata:
labels: labels:
app: <CI_PROJECT_PATH_SLUG> app: <CI_PROJECT_PATH_SLUG>
environment: <CI_ENVIRONMENT_SLUG> environment: <CI_ENVIRONMENT_SLUG>
commit: <CI_COMMIT_SHORT_SHA> commit: '<CI_COMMIT_SHORT_SHA>'
spec: spec:
tls: tls:
- hosts: - hosts: