This commit is contained in:
VR 2025-06-22 10:02:50 +01:00
parent d8addbf7dc
commit 7d0681c3c6

View File

@ -35,7 +35,6 @@ jobs:
- name: Set up cluster access
run: mkdir ~/.kube && echo "${{ secrets.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)
- run: ls -al && echo $TARGET_POD && kubectl get pods -n my-stuff -l app=digital-garden -o json | jq -r .items[0].metadata.name
run: echo "TARGET_POD=$(kubectl get pods -n my-stuff -l app=digital-garden -o json | jq -r .items[0].metadata.name)" >> "$GITHBU_ENV"
- name: Copy contents to PVC
run: kubectl cp content my-stuff/$TARGET_POD:/www/data/