diff --git a/.forgejo/workflows/k8s-diff-and-deploy.yaml b/.forgejo/workflows/k8s-diff-and-deploy.yaml index 1fc0cd0..906a3e1 100644 --- a/.forgejo/workflows/k8s-diff-and-deploy.yaml +++ b/.forgejo/workflows/k8s-diff-and-deploy.yaml @@ -25,13 +25,13 @@ jobs: echo "👀 $ kubectl diff -k ${component}" kubectl diff -k "${component}" || echo - # if [[ "${GITHUB_REF_NAME}" == "main" ]]; then - # echo "🚀 $ kubectl apply -k ${component}" - # if [[ "${component}" == "k8s/operators" ]]; then - # kubectl apply -k "${component}" --server-side - # else - # kubectl apply -k "${component}" - # fi - # echo - # fi + if [[ "${GITHUB_REF_NAME}" == "main" ]]; then + echo "🚀 $ kubectl apply -k ${component}" + if [[ "${component}" == "k8s/operators" ]]; then + kubectl apply -k "${component}" --server-side + else + kubectl apply -k "${component}" + fi + echo + fi done