This commit is contained in:
VR 2025-06-22 10:16:02 +01:00
parent 09f2396e42
commit 9a8ebb67aa

View File

@ -33,8 +33,8 @@ jobs:
- 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: ls -al ~ && mkdir ~/.kube && echo "${{ secrets.K8S_CONF }}" > ~/.kube/config && cat ~/.kube/config run: mkdir ~/.kube && echo "${{ secrets.K8S_CONF }}" > ~/.kube/config
- name: Get target pods's name - name: Get target pods's 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" run: echo "TARGET_POD=$(kubectl get pods -n my-stuff -l app=digital-garden -o json | jq -r .items[0].metadata.name)" >> "$GITHUB_ENV"
- name: Copy contents to PVC - name: Copy contents to PVC
run: kubectl cp content my-stuff/$TARGET_POD:/www/data/ run: kubectl cp content my-stuff/$TARGET_POD:/www/data/