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

@ -2,8 +2,9 @@ SHELL := /bin/zsh
.DEFAULT_GOAL := help .DEFAULT_GOAL := help
K3D_SCRIPT := infrastructure/k3d/k3d.sh K3D_SCRIPT := infrastructure/k3d/k3d.sh
TERRAFORM := terraform TERRAFORM := terraform
REGISTRY := git.gugagr.xyz/admin
# ── Cluster ─────────────────────────────────────────────────────────────────── # ── Cluster ───────────────────────────────────────────────────────────────────
@ -28,9 +29,17 @@ dev: ## Watch all services — rebuild and redeploy on file change
skaffold dev skaffold dev
.PHONY: run .PHONY: run
run: ## Build and deploy all services once run: ## Build and deploy all services once (local)
skaffold run 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 .PHONY: dev-finance
dev-finance: ## Watch finance API only dev-finance: ## Watch finance API only
skaffold dev -f apps/finance/services/api/skaffold.yaml -p local skaffold dev -f apps/finance/services/api/skaffold.yaml -p local

View File

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