diff --git a/Makefile b/Makefile index 8d00ab5..b068ecc 100644 --- a/Makefile +++ b/Makefile @@ -27,8 +27,8 @@ deploy-server: @cat k8s/deployment.yaml >> /tmp/server_deploy.yaml @# Single SCP/SSH call to reduce password prompts scp /tmp/server_deploy.yaml $(SERVER_USER)@$(SERVER_IP):/tmp/server_deploy.yaml - ssh $(SERVER_USER)@$(SERVER_IP) "sudo kubectl apply -f /tmp/server_deploy.yaml && rm /tmp/server_deploy.yaml" - @rm /tmp/server_deploy.yaml + ssh $(SERVER_USER)@$(SERVER_IP) "sudo kubectl apply -f /tmp/server_deploy.yaml && rm -f /tmp/server_deploy.yaml" + @rm -f /tmp/server_deploy.yaml stop: -podman kube down k8s/deployment.yaml >/dev/null 2>&1