2 Commits

Author SHA1 Message Date
79db2419a6 fix(Makefile, playbook.yml): ensure Ansible syntax-check has access to group_vars and clean up playbook formatting
- Add all group_vars/all/*.yml as extra-vars (-e @file) in Makefile syntax-check
- Use consistent quoting in playbook.yml for SOFTWARE_NAME and host_type templating

Ref: https://chatgpt.com/share/68cdee8a-4e88-800f-bf62-bed66dbbb417
2025-09-20 02:00:25 +02:00
c424afa935 Fix CLI workflow and container startup
- Updated GitHub Actions workflow to call `infinito make ...` inside container
- Simplified Dockerfile CMD to run `infinito --help` and keep container alive
- Adjusted docker-compose.yml to use explicit image name

See: https://chatgpt.com/share/68cde606-c3f8-800f-8ac5-fc035386da87
2025-09-20 01:24:20 +02:00
5 changed files with 9 additions and 14 deletions

View File

@@ -21,12 +21,12 @@ jobs:
- name: Clean build artifacts - name: Clean build artifacts
run: | run: |
docker run --rm infinito:latest make clean docker run --rm infinito:latest infinito make clean
- name: Generate project outputs - name: Generate project outputs
run: | run: |
docker run --rm infinito:latest make build docker run --rm infinito:latest infinito make build
- name: Run tests - name: Run tests
run: | run: |
docker run --rm infinito:latest make test docker run --rm infinito:latest infinito make test

View File

@@ -59,9 +59,4 @@ RUN INFINITO_PATH=$(pkgmgr path infinito) && \
ln -sf "$INFINITO_PATH"/main.py /usr/local/bin/infinito && \ ln -sf "$INFINITO_PATH"/main.py /usr/local/bin/infinito && \
chmod +x /usr/local/bin/infinito chmod +x /usr/local/bin/infinito
# 10) Run integration tests CMD sh -c "infinito --help && exec tail -f /dev/null"
# This needed to be deactivated becaus it doesn't work with gitthub workflow
#RUN INFINITO_PATH=$(pkgmgr path infinito) && \
# cd "$INFINITO_PATH" && \
# make test
CMD ["infinito --help"]

View File

@@ -73,7 +73,7 @@ messy-test:
@echo "🧪 Running Python tests…" @echo "🧪 Running Python tests…"
PYTHONPATH=. python -m unittest discover -s tests PYTHONPATH=. python -m unittest discover -s tests
@echo "📑 Checking Ansible syntax…" @echo "📑 Checking Ansible syntax…"
ansible-playbook playbook.yml --syntax-check ansible-playbook -i localhost, -c local $(foreach f,$(wildcard group_vars/all/*.yml),-e @$(f)) playbook.yml --syntax-check
install: build install: build
@echo "⚙️ Install complete." @echo "⚙️ Install complete."

View File

@@ -8,8 +8,8 @@ services:
network: host network: host
pull_policy: never pull_policy: never
container_name: infinito_nexus container_name: infinito_nexus
image: infinito_nexus
restart: unless-stopped restart: unless-stopped
command: tail -f /dev/null
volumes: volumes:
- data:/var/lib/docker/volumes/ - data:/var/lib/docker/volumes/
- backups:/Backups/ - backups:/Backups/

View File

@@ -1,4 +1,4 @@
- name: Execute {{ SOFTWARE_NAME }} Play - name: "Execute {{ SOFTWARE_NAME }} Play"
hosts: all hosts: all
tasks: tasks:
- name: "Load 'constructor' tasks" - name: "Load 'constructor' tasks"