fixing kubernetes tests
All checks were successful
Test Actions (self-test) / Build tiny multi-arch image (push) Successful in 9s
Test Actions (self-test) / Test SSH deploy action (push) Successful in 18s
Test Actions (self-test) / Test Kubernetes actions (push) Successful in 21s

This commit is contained in:
2026-07-13 21:05:51 -03:00
parent cc5d2088bd
commit de1ecdf5bd

View File

@@ -88,10 +88,12 @@ jobs:
shell: bash shell: bash
run: | run: |
if [ -f kubeconfig.yaml ]; then if [ -f kubeconfig.yaml ]; then
kubectl --kubeconfig=kubeconfig.yaml delete namespace pipeline-actions-test --ignore-not-found=true --timeout=30s kubectl --kubeconfig=kubeconfig.yaml delete deployment pipeline-actions-test -n pipeline-actions-test --grace-period=0 --force --ignore-not-found=true
kubectl --kubeconfig=kubeconfig.yaml delete namespace pipeline-actions-test --ignore-not-found=true --wait=false
else else
printf '%s' "${{ secrets.KUBE_CONFIG }}" | tr -d '\r' > kubeconfig.yaml printf '%s' "${{ secrets.KUBE_CONFIG }}" | tr -d '\r' > kubeconfig.yaml
kubectl --kubeconfig=kubeconfig.yaml delete namespace pipeline-actions-test --ignore-not-found=true --timeout=30s kubectl --kubeconfig=kubeconfig.yaml delete deployment pipeline-actions-test -n pipeline-actions-test --grace-period=0 --force --ignore-not-found=true
kubectl --kubeconfig=kubeconfig.yaml delete namespace pipeline-actions-test --ignore-not-found=true --wait=false
fi fi
test-ssh: test-ssh: