This commit is contained in:
2024-02-04 00:52:25 +01:00
parent 7c734db80a
commit 9ea515e140
5 changed files with 28 additions and 24 deletions

View File

@@ -27,7 +27,7 @@ spec:
- name: S3_REGION
value: us-west-1
command: ["/bin/sh", "-c"]
args: ["aws --endpoint-url https://s3.kluster.moll.re s3 sync s3://$S3_BUCKET /config"]
args: ["aws --endpoint-url https://s3.kluster.moll.re s3 sync s3://$S3_BUCKET /vault"]
volumeMounts:
- name: vault
@@ -49,20 +49,22 @@ spec:
- name: quartz-build
image: node
command: ["/bin/sh", "-c"]
args:
- cd /config &&
- ln -s /vault content
- npm ci &&
- npx quartz build &&
- rm -rfv /dist/* &&
- cp --verbose -r public/* /dist
args:
- >-
cd /config &&
ln -s /vault content &&
npm ci &&
npx quartz build &&
rm -rfv /dist/* &&
cp --verbose -r /config/public/* /dist
# can't just ln to the dist folder, because quartz deletes it before rebuilding
volumeMounts:
- name: vault
mountPath: /vault
- name: dist
mountPath: /dist
- name: config
mountPath: /config
restartPolicy: Never
volumes: