From d22e1e81b1380b3c762e94a97dabf4d2c6dbf399 Mon Sep 17 00:00:00 2001 From: Finn Date: Tue, 29 Oct 2024 23:46:54 -0700 Subject: [PATCH] Activate auto-deploy --- .forgejo/workflows/k8s-diff-and-deploy.yaml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) 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