#1 - Agregar deploy automatico
All checks were successful
CodyOps Nucleus Builder / build-conteiner (pull_request) Successful in 36s

This commit is contained in:
Luciano Giacchetta 2025-07-03 17:51:04 -03:00
parent 79fb069353
commit 9528126c41
3 changed files with 9 additions and 3 deletions

View File

@ -13,4 +13,5 @@ jobs:
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Make Build - name: Make Build
run: make build run: make build
- name: Make Deploy
run: make deploy

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
.envrc .envrc
node_modules node_modules
dist dist
tests

View File

@ -1,7 +1,8 @@
NAMESPACE:= codyops
REGISTRY:= gianet.us/codyops REGISTRY:= gianet.us/codyops
IMAGE:= nucleus IMAGE:= nucleus
.PHONY: init build setup .PHONY: init build setup deploy
init: init:
direnv allow . direnv allow .
@ -13,3 +14,6 @@ build: setup
npm run build npm run build
podman build --pull=newer --tag $(REGISTRY)/$(IMAGE) . podman build --pull=newer --tag $(REGISTRY)/$(IMAGE) .
podman push $(REGISTRY)/$(IMAGE) podman push $(REGISTRY)/$(IMAGE)
deploy:
kubectl -n $(NAMESPACE) rollout restart deployment/$(NAMESPACE)-$(IMAGE)