apex/Makefile
Luciano Giacchetta 26ffc6f14f
All checks were successful
CodyOps Apex Builder / build-conteiner (pull_request) Successful in 31s
#2 - Nuevo workflow builder y Makefile
2025-06-13 11:08:32 -03:00

21 lines
616 B
Makefile

REGISTRY:= gianet.us/codyops
IMAGE:= apex
DOMAINS:= com es br
.PHONY: init build setup $(addprefix step-,$(DOMAINS))
init:
direnv allow .
setup:
npm install
build: setup $(addprefix step-,$(DOMAINS))
$(addprefix step-,$(DOMAINS)):
@echo "Ejecutando step para el dominio: $(shell echo $(patsubst step-%,%,$@) | tr '[:lower:]' '[:upper:]')"
export ASTRO_GTAG=${ASTRO_GTAG_$(shell echo $(patsubst step-%,%,$@) | tr '[:lower:]' '[:upper:]')} && \
npx astro build --force
podman build --pull=newer --tag $(REGISTRY)/$(IMAGE):$(patsubst step-%,%,$@) .
#podman push $(REGISTRY)/$(IMAGE):$(patsubst step-%,%,$@)