From 9528126c41eb866016a3a8a5add7c9860f9a5bce Mon Sep 17 00:00:00 2001 From: Luciano Giacchetta Date: Thu, 3 Jul 2025 17:51:04 -0300 Subject: [PATCH] #1 - Agregar deploy automatico --- .gitea/workflows/builder.yaml | 3 ++- .gitignore | 3 ++- Makefile | 6 +++++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/builder.yaml b/.gitea/workflows/builder.yaml index dbf0848..6265010 100644 --- a/.gitea/workflows/builder.yaml +++ b/.gitea/workflows/builder.yaml @@ -13,4 +13,5 @@ jobs: uses: actions/checkout@v4 - name: Make Build run: make build - \ No newline at end of file + - name: Make Deploy + run: make deploy \ No newline at end of file diff --git a/.gitignore b/.gitignore index 63eef90..8979563 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ .envrc node_modules -dist \ No newline at end of file +dist +tests \ No newline at end of file diff --git a/Makefile b/Makefile index 0973622..7b67ba9 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,8 @@ +NAMESPACE:= codyops REGISTRY:= gianet.us/codyops IMAGE:= nucleus -.PHONY: init build setup +.PHONY: init build setup deploy init: direnv allow . @@ -13,3 +14,6 @@ build: setup npm run build podman build --pull=newer --tag $(REGISTRY)/$(IMAGE) . podman push $(REGISTRY)/$(IMAGE) + +deploy: + kubectl -n $(NAMESPACE) rollout restart deployment/$(NAMESPACE)-$(IMAGE) \ No newline at end of file