#1 - Agregar deploy automatico
All checks were successful
CodyOps Nucleus Builder / build-conteiner (pull_request) Successful in 36s
All checks were successful
CodyOps Nucleus Builder / build-conteiner (pull_request) Successful in 36s
This commit is contained in:
parent
79fb069353
commit
9528126c41
@ -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
1
.gitignore
vendored
@ -1,3 +1,4 @@
|
|||||||
.envrc
|
.envrc
|
||||||
node_modules
|
node_modules
|
||||||
dist
|
dist
|
||||||
|
tests
|
6
Makefile
6
Makefile
@ -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)
|
Loading…
x
Reference in New Issue
Block a user