diff --git a/.gitea/workflows/publish.yaml b/.gitea/workflows/publish.yaml index dca1c40..7a9d845 100644 --- a/.gitea/workflows/publish.yaml +++ b/.gitea/workflows/publish.yaml @@ -29,12 +29,13 @@ jobs: uses: actions/download-artifact@v3 with: name: content + path: ./content - 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 - 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 + - run: ls -al && echo $TARGET_POD && kubectl get pods -n my-stuff -l app=digital-garden -o json - 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/