From 3621df170ac1d60929e7c7763a014fecbab951b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gon=C3=A7alo=20Rodrigues?= Date: Fri, 26 Jun 2026 22:39:58 +0100 Subject: [PATCH] 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- targets for convenience. Co-Authored-By: Claude Sonnet 4.6 --- Makefile | 13 +++++++++++-- skaffold.yaml | 1 - 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index c91cc09..3c79fa2 100644 --- a/Makefile +++ b/Makefile @@ -2,8 +2,9 @@ SHELL := /bin/zsh .DEFAULT_GOAL := help -K3D_SCRIPT := infrastructure/k3d/k3d.sh +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 diff --git a/skaffold.yaml b/skaffold.yaml index 7fe6b14..c5e321e 100644 --- a/skaffold.yaml +++ b/skaffold.yaml @@ -19,7 +19,6 @@ profiles: - kubeContext: k3d-homelab - name: ci build: - defaultRepo: git.gugagr.xyz/admin local: push: true platforms: