From 98cf08b1792c949fee32a08c9722d06c527d93dd Mon Sep 17 00:00:00 2001 From: Christian Gawron Date: Thu, 20 Jun 2024 00:05:29 +0200 Subject: [PATCH] fix: multi-release - add additional tags to docker images - update image tag in k8 deployment --- client/k8s/frontend-deployment.yaml | 39 +++++++++++++++++++++++++++++ client/package.json | 4 +-- 2 files changed, 41 insertions(+), 2 deletions(-) create mode 100644 client/k8s/frontend-deployment.yaml diff --git a/client/k8s/frontend-deployment.yaml b/client/k8s/frontend-deployment.yaml new file mode 100644 index 0000000..5f6a870 --- /dev/null +++ b/client/k8s/frontend-deployment.yaml @@ -0,0 +1,39 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: client + namespace: bookme +spec: + containers: + - env: + - name: CLIENT_ID + valueFrom: + secretKeyRef: + key: CLIENT_ID + name: bookme-secret + - name: API_URL + valueFrom: + configMapKeyRef: + key: API_URL + name: bookme + - name: CLIENT_URL + valueFrom: + configMapKeyRef: + key: CLIENT_URL + name: bookme + - name: MONGO_URI + valueFrom: + configMapKeyRef: + key: MONGO_URI + name: bookme + - name: TZ + valueFrom: + configMapKeyRef: + key: TZ + name: bookme + image: ghcr.io/fhswf/book_me/frontend:latest + name: client + ports: + - containerPort: 80 + resources: {} + restartPolicy: Always diff --git a/client/package.json b/client/package.json index a5d3157..fd8b017 100644 --- a/client/package.json +++ b/client/package.json @@ -110,7 +110,7 @@ "@semantic-release/exec", { "execCwd": ".", - "generateNotesCmd": "yarn exec node ../utility/patch-k8s.js ../k8s/frontend-deployment.yaml" + "generateNotesCmd": "yarn exec node ../utility/patch-k8s.js k8s/frontend-deployment.yaml" } ], [ @@ -119,7 +119,7 @@ "assets": [ "package.json", "CHANGELOG.md", - "../k8s/frontend-deployment.yaml" + "k8s/frontend-deployment.yaml" ] } ],