fixin
This commit is contained in:
parent
7fc7e54f95
commit
6a342de89c
@ -11,8 +11,27 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Clone local copy of Quartz
|
- name: Clone local copy of Quartz
|
||||||
run: git clone https://k3gtpi.jumpingcrab.com/vlad/quartz-clone.git
|
run: git clone https://k3gtpi.jumpingcrab.com/vlad/quartz-clone.git
|
||||||
- run: ls -al
|
|
||||||
- name: Copy notes to content directory
|
- name: Copy notes to content directory
|
||||||
run: cp ./notes/* quartz-clone/content
|
run: cp ./notes/* quartz-clone/content
|
||||||
- name: Build Quartz
|
- name: Build Quartz
|
||||||
run: cd quartz-clone && npm i && npx quartz create && npx quartz build
|
run: cd quartz-clone && npm i && npx quartz create && npx quartz build
|
||||||
|
- name: Upload artifact
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: content
|
||||||
|
path: quartz-clone/public
|
||||||
|
deploy:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: bitnami/kubectl:1.32
|
||||||
|
needs: build-quartz
|
||||||
|
steps:
|
||||||
|
- uses: actions/download-artifact@v4
|
||||||
|
with:
|
||||||
|
name: content
|
||||||
|
- name: Set up cluster access
|
||||||
|
run: echo $K8S_CONF > ~/.kube/config
|
||||||
|
- name: Get target pods's name
|
||||||
|
run: export TARGET_POD=$(kubectl get pods -n my-stuff -l app=digital-garden -o json | jq -r .items[0].metadata.name)
|
||||||
|
- name: Copy contents to PVC
|
||||||
|
run: kubectl cp quartz-clone/public my-stuff/$TARGET_POD:/www/data/
|
||||||
|
Loading…
Reference in New Issue
Block a user