diff --git a/.gitea/workflows/publish.yaml b/.gitea/workflows/publish.yaml index 8127a69..e170be9 100644 --- a/.gitea/workflows/publish.yaml +++ b/.gitea/workflows/publish.yaml @@ -33,8 +33,8 @@ jobs: - 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: 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 - 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 run: kubectl cp content my-stuff/$TARGET_POD:/www/data/