excluded resolver
Some checks failed
Build and Deploy / build-and-deploy (push) Has been cancelled

This commit is contained in:
Henrik Jess Nielsen
2026-05-22 18:33:54 +02:00
parent 26a16e3638
commit e3fa08f6fb
3 changed files with 41 additions and 26 deletions

View File

@@ -1,4 +1,7 @@
.PHONY: install run dev docker-build docker-up docker-down test clean
.PHONY: install run dev docker-build docker-up docker-down push deploy logs vault-setup test clean
REGISTRY = registry.i80.dk
IMAGE = $(REGISTRY)/moneycapp-tink-demo
install:
python3 -m venv .venv && .venv/bin/pip install -q -r requirements.txt
@@ -20,5 +23,28 @@ docker-up:
docker-down:
docker compose down
# --- Deploy to i80.dk ---
push:
docker build --platform linux/amd64 -t $(IMAGE):latest .
docker push $(IMAGE):latest
@echo "✓ Image pushed to $(IMAGE):latest"
vault-setup:
@echo "Storing Tink credentials in Vault..."
vault kv put secret/moneycapp-tink-demo \
client_id=$(TINK_CLIENT_ID) \
client_secret=$(TINK_CLIENT_SECRET) \
session_secret=$$(openssl rand -hex 32)
@echo "✓ Vault secret stored at secret/moneycapp-tink-demo"
deploy: push
scp moneycapp-tink-demo.nomad autobox.i80.dk:/tmp/
ssh autobox.i80.dk 'export NOMAD_ADDR=https://nomad.i80.dk:4646 && nomad job run /tmp/moneycapp-tink-demo.nomad'
@echo "✓ Deployed — https://tink-demo.i80.dk"
logs:
ssh autobox.i80.dk 'export NOMAD_ADDR=https://nomad.i80.dk:4646 && nomad alloc logs -job moneycapp-tink-demo'
clean:
rm -rf .venv __pycache__ src/__pycache__ src/**/__pycache__