fix(skaffold): pass defaultRepo as --default-repo flag, add deploy targets

defaultRepo is not valid inside a profile build block in v4beta13.
Pass it as a CLI flag instead and expose make deploy / make deploy-<module>
targets for convenience.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Gonçalo Rodrigues 2026-06-26 22:39:58 +01:00
parent d00dcb9d3c
commit 3621df170a
2 changed files with 11 additions and 3 deletions

View File

@ -4,6 +4,7 @@ SHELL := /bin/zsh
K3D_SCRIPT := infrastructure/k3d/k3d.sh
TERRAFORM := terraform
REGISTRY := git.gugagr.xyz/admin
# ── Cluster ───────────────────────────────────────────────────────────────────
@ -28,9 +29,17 @@ dev: ## Watch all services — rebuild and redeploy on file change
skaffold dev
.PHONY: run
run: ## Build and deploy all services once
run: ## Build and deploy all services once (local)
skaffold run
.PHONY: deploy
deploy: ## Build for ARM64, push to Gitea, and deploy all services to VPS
skaffold run -p ci --default-repo $(REGISTRY)
.PHONY: deploy-%
deploy-%: ## Build and deploy a single service to VPS (e.g. make deploy-finance-api)
skaffold run -p ci -m $* --default-repo $(REGISTRY)
.PHONY: dev-finance
dev-finance: ## Watch finance API only
skaffold dev -f apps/finance/services/api/skaffold.yaml -p local

View File

@ -19,7 +19,6 @@ profiles:
- kubeContext: k3d-homelab
- name: ci
build:
defaultRepo: git.gugagr.xyz/admin
local:
push: true
platforms: