fixes
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user