Optimized deployment script

This commit is contained in:
2025-07-18 11:42:05 +02:00
parent d1982af63d
commit 0f1f40f2e0
3 changed files with 27 additions and 15 deletions

View File

@@ -41,7 +41,7 @@ dockerignore:
cat .gitignore > .dockerignore
echo ".git" >> .dockerignore
build: clean dockerignore
messy-build: dockerignore
@echo "🔧 Generating users defaults → $(USERS_OUT)"
python3 $(USERS_SCRIPT) \
--roles-dir $(ROLES_DIR) \
@@ -65,14 +65,17 @@ build: clean dockerignore
echo "$$out"; \
)
install: build
@echo "⚙️ Install complete."
messy-test:
messy-test:
@echo "🧪 Running Python tests…"
PYTHONPATH=. python -m unittest discover -s tests
@echo "📑 Checking Ansible syntax…"
ansible-playbook playbook.yml --syntax-check
test: build partial-test
@echo "Full test with build terminated."
install: build
@echo "⚙️ Install complete."
build: clean messy-build
@echo "Full build with cleanup before was executed."
test: build messy-test
@echo "Full test with build before was executed."