fixing kubernetes tests
This commit is contained in:
@@ -88,10 +88,12 @@ jobs:
|
||||
shell: bash
|
||||
run: |
|
||||
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
|
||||
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
|
||||
|
||||
test-ssh:
|
||||
|
||||
Reference in New Issue
Block a user