From cc730fc545bc0f29dd32ecc8f1892d416ddc0d07 Mon Sep 17 00:00:00 2001 From: Adam Vollrath Date: Tue, 12 Dec 2023 14:30:19 -0600 Subject: [PATCH] Update `postgres` data mount point to persist. Signed-off-by: Adam Vollrath --- .github/uffizzi/k8s/manifests/pg-deploy.yaml | 5 ++++- .github/workflows/uffizzi-build.yml | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/uffizzi/k8s/manifests/pg-deploy.yaml b/.github/uffizzi/k8s/manifests/pg-deploy.yaml index 354acd8e87..4f49b309ca 100644 --- a/.github/uffizzi/k8s/manifests/pg-deploy.yaml +++ b/.github/uffizzi/k8s/manifests/pg-deploy.yaml @@ -19,11 +19,14 @@ spec: imagePullPolicy: 'IfNotPresent' ports: - containerPort: 5432 + env: + - name: PGDATA + value: "/data/pgdata" envFrom: - secretRef: name: postgres-secrets volumeMounts: - - mountPath: /var/lib/postgresql + - mountPath: /data name: postgresdb volumes: - name: postgresdb diff --git a/.github/workflows/uffizzi-build.yml b/.github/workflows/uffizzi-build.yml index 4eaf2c2dc0..347e525add 100644 --- a/.github/workflows/uffizzi-build.yml +++ b/.github/workflows/uffizzi-build.yml @@ -56,7 +56,7 @@ jobs: - name: Generate UUID image name id: uuid - run: echo "UUID_TAG_APP=$(uuidgen)" >> $GITHUB_ENV + run: echo "UUID_TAG_APP=backstage-$(uuidgen)" >> $GITHUB_ENV - name: Docker metadata id: meta