This commit is contained in:
VR 2025-06-22 01:25:32 +01:00
parent e718ec630a
commit ad5d76eb13

View File

@ -29,12 +29,13 @@ jobs:
uses: actions/download-artifact@v3 uses: actions/download-artifact@v3
with: with:
name: content name: content
path: ./content
- name: Install kubectl - name: Install kubectl
run: curl -LO https://dl.k8s.io/release/v1.33.0/bin/linux/arm64/kubectl && chmod +x kubectl && mv kubectl /usr/bin run: curl -LO https://dl.k8s.io/release/v1.33.0/bin/linux/arm64/kubectl && chmod +x kubectl && mv kubectl /usr/bin
- name: Set up cluster access - name: Set up cluster access
run: mkdir ~/.kube && echo "${{ secrets.K8S_CONF }}" > ~/.kube/config run: mkdir ~/.kube && echo "${{ secrets.K8S_CONF }}" > ~/.kube/config
- name: Get target pods's name - 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: 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 - run: ls -al && echo $TARGET_POD && kubectl get pods -n my-stuff -l app=digital-garden -o json
- name: Copy contents to PVC - name: Copy contents to PVC
run: kubectl cp quartz-clone/public my-stuff/$TARGET_POD:/www/data/ run: kubectl cp content my-stuff/$TARGET_POD:/www/data/