Loading templates/gitlab-ci-k8s.yml +18 −9 Original line number Diff line number Diff line Loading @@ -313,7 +313,8 @@ stages: if [[ -f "$deployscript" ]] then log_info "--- deploy script (\\e[33;1m${deployscript}\\e[0m) found: execute" sh "$deployscript" chmod +x "$deployscript" "$deployscript" else log_info "--- no deploy script found: run template-based deployment" Loading @@ -321,7 +322,8 @@ stages: prescript="$K8S_SCRIPTS_DIR/k8s-pre-apply.sh" if [[ -f "$prescript" ]]; then log_info "--- \\e[32mpre-apply hook\\e[0m (\\e[33;1m${prescript}\\e[0m) found: execute" sh "$prescript" chmod +x "$prescript" "$prescript" else log_info "--- \\e[32mpre-apply hook\\e[0m (\\e[33;1m${prescript}\\e[0m) not found: skip" fi Loading @@ -345,7 +347,8 @@ stages: postscript="$K8S_SCRIPTS_DIR/k8s-post-apply.sh" if [[ -f "$postscript" ]]; then log_info "--- \\e[32mpost-apply hook\\e[0m (${postscript}) found: execute" sh "$postscript" chmod +x "$postscript" "$postscript" else log_info "--- \\e[32mpost-apply hook\\e[0m (${postscript}) not found: skip" fi Loading @@ -359,7 +362,8 @@ stages: readycheck="$K8S_SCRIPTS_DIR/k8s-readiness-check.sh" if [[ -f "$readycheck" ]]; then log_info "--- \\e[32mreadiness-check hook\\e[0m (\\e[33;1m${readycheck}\\e[0m) found: execute" sh "$readycheck" chmod +x "$readycheck" "$readycheck" else log_info "--- \\e[32mreadiness-check hook\\e[0m (\\e[33;1m${readycheck}\\e[0m) not found: assume app is ready" fi Loading Loading @@ -392,7 +396,8 @@ stages: prescript="$K8S_SCRIPTS_DIR/k8s-pre-rollback.sh" if [[ -f "$prescript" ]]; then log_info "--- \\e[32mpre-rollback hook\\e[0m (\\e[33;1m${prescript}\\e[0m) found: execute" sh "$prescript" chmod +x "$prescript" "$prescript" else log_info "--- \\e[32mpre-rollback hook\\e[0m (\\e[33;1m${prescript}\\e[0m) not found: skip" fi Loading @@ -406,7 +411,8 @@ stages: postscript="$K8S_SCRIPTS_DIR/k8s-post-rollback.sh" if [[ -f "$postscript" ]]; then log_info "--- \\e[32mpost-rollback hook\\e[0m (\\e[33;1m${postscript}\\e[0m) found: execute" sh "$postscript" chmod +x "$postscript" "$postscript" else log_info "--- \\e[32mpost-rollback hook\\e[0m (\\e[33;1m${postscript}\\e[0m) not found: skip" fi Loading Loading @@ -435,7 +441,8 @@ stages: if [[ -f "$cleanupscript" ]] then log_info "--- cleanup script (\\e[33;1m${cleanupscript}\\e[0m) found: execute" sh "$cleanupscript" chmod +x "$cleanupscript" "$cleanupscript" else log_info "--- no cleanup script found: proceed with template-based delete" Loading @@ -443,7 +450,8 @@ stages: prescript="$K8S_SCRIPTS_DIR/k8s-pre-cleanup.sh" if [[ -f "$prescript" ]]; then log_info "--- \\e[32mpre-cleanup hook\\e[0m (\\e[33;1m${prescript}\\e[0m) found: execute" sh "$prescript" chmod +x "$prescript" "$prescript" else log_info "--- \\e[32mpre-cleanup hook\\e[0m (\\e[33;1m${prescript}\\e[0m) not found: skip" fi Loading @@ -470,7 +478,8 @@ stages: postscript="$K8S_SCRIPTS_DIR/k8s-post-cleanup.sh" if [[ -f "$postscript" ]]; then log_info "--- \\e[32mpost-cleanup hook\\e[0m (\\e[33;1m${postscript}\\e[0m) found: execute" sh "$postscript" chmod +x "$postscript" "$postscript" else log_info "--- \\e[32mpost-cleanup hook\\e[0m (\\e[33;1m${postscript}\\e[0m) not found: skip" fi Loading Loading
templates/gitlab-ci-k8s.yml +18 −9 Original line number Diff line number Diff line Loading @@ -313,7 +313,8 @@ stages: if [[ -f "$deployscript" ]] then log_info "--- deploy script (\\e[33;1m${deployscript}\\e[0m) found: execute" sh "$deployscript" chmod +x "$deployscript" "$deployscript" else log_info "--- no deploy script found: run template-based deployment" Loading @@ -321,7 +322,8 @@ stages: prescript="$K8S_SCRIPTS_DIR/k8s-pre-apply.sh" if [[ -f "$prescript" ]]; then log_info "--- \\e[32mpre-apply hook\\e[0m (\\e[33;1m${prescript}\\e[0m) found: execute" sh "$prescript" chmod +x "$prescript" "$prescript" else log_info "--- \\e[32mpre-apply hook\\e[0m (\\e[33;1m${prescript}\\e[0m) not found: skip" fi Loading @@ -345,7 +347,8 @@ stages: postscript="$K8S_SCRIPTS_DIR/k8s-post-apply.sh" if [[ -f "$postscript" ]]; then log_info "--- \\e[32mpost-apply hook\\e[0m (${postscript}) found: execute" sh "$postscript" chmod +x "$postscript" "$postscript" else log_info "--- \\e[32mpost-apply hook\\e[0m (${postscript}) not found: skip" fi Loading @@ -359,7 +362,8 @@ stages: readycheck="$K8S_SCRIPTS_DIR/k8s-readiness-check.sh" if [[ -f "$readycheck" ]]; then log_info "--- \\e[32mreadiness-check hook\\e[0m (\\e[33;1m${readycheck}\\e[0m) found: execute" sh "$readycheck" chmod +x "$readycheck" "$readycheck" else log_info "--- \\e[32mreadiness-check hook\\e[0m (\\e[33;1m${readycheck}\\e[0m) not found: assume app is ready" fi Loading Loading @@ -392,7 +396,8 @@ stages: prescript="$K8S_SCRIPTS_DIR/k8s-pre-rollback.sh" if [[ -f "$prescript" ]]; then log_info "--- \\e[32mpre-rollback hook\\e[0m (\\e[33;1m${prescript}\\e[0m) found: execute" sh "$prescript" chmod +x "$prescript" "$prescript" else log_info "--- \\e[32mpre-rollback hook\\e[0m (\\e[33;1m${prescript}\\e[0m) not found: skip" fi Loading @@ -406,7 +411,8 @@ stages: postscript="$K8S_SCRIPTS_DIR/k8s-post-rollback.sh" if [[ -f "$postscript" ]]; then log_info "--- \\e[32mpost-rollback hook\\e[0m (\\e[33;1m${postscript}\\e[0m) found: execute" sh "$postscript" chmod +x "$postscript" "$postscript" else log_info "--- \\e[32mpost-rollback hook\\e[0m (\\e[33;1m${postscript}\\e[0m) not found: skip" fi Loading Loading @@ -435,7 +441,8 @@ stages: if [[ -f "$cleanupscript" ]] then log_info "--- cleanup script (\\e[33;1m${cleanupscript}\\e[0m) found: execute" sh "$cleanupscript" chmod +x "$cleanupscript" "$cleanupscript" else log_info "--- no cleanup script found: proceed with template-based delete" Loading @@ -443,7 +450,8 @@ stages: prescript="$K8S_SCRIPTS_DIR/k8s-pre-cleanup.sh" if [[ -f "$prescript" ]]; then log_info "--- \\e[32mpre-cleanup hook\\e[0m (\\e[33;1m${prescript}\\e[0m) found: execute" sh "$prescript" chmod +x "$prescript" "$prescript" else log_info "--- \\e[32mpre-cleanup hook\\e[0m (\\e[33;1m${prescript}\\e[0m) not found: skip" fi Loading @@ -470,7 +478,8 @@ stages: postscript="$K8S_SCRIPTS_DIR/k8s-post-cleanup.sh" if [[ -f "$postscript" ]]; then log_info "--- \\e[32mpost-cleanup hook\\e[0m (\\e[33;1m${postscript}\\e[0m) found: execute" sh "$postscript" chmod +x "$postscript" "$postscript" else log_info "--- \\e[32mpost-cleanup hook\\e[0m (\\e[33;1m${postscript}\\e[0m) not found: skip" fi Loading