apex/Makefile
Luciano Giacchetta f57e758909 Fix #2 - Nuevo workflow builder y Makefile (#4)
Reviewed-on: #4
Co-authored-by: Luciano Giacchetta <giacchetta-@outlook.com>
Co-committed-by: Luciano Giacchetta <giacchetta-@outlook.com>
2025-06-13 11:10:02 -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-%,%,$@)