diff options
| author | Your Name <you@example.com> | 2026-05-23 23:31:31 +0530 |
|---|---|---|
| committer | Your Name <you@example.com> | 2026-05-23 23:31:31 +0530 |
| commit | cfa17135a034207f4005f754a94093ebc3d547d2 (patch) | |
| tree | 1c4a3d93b27d273b58be636cdafabf202b50bfa7 /ci/systemd | |
| parent | 85ef20a2004c600dd04428520a79a0e47a54ed2d (diff) | |
ci: add Ansible CI/CD workflow with nostr relay listener
- ci_listener.py: WebSocket client subscribed to ngit.orangesync.tech
for NIP-34 git state events (kind 30617), triggers pipeline on push
- run_pipeline.sh: clone + make test-unit + Docker ESP-IDF build
- systemd service: tollgate-ci-listener with auto-restart
- Ansible role ci_runner: Docker, ESP-IDF image, listener deployment
- 20-ci-runner.yml: playbook for CI runner setup
- 30-hardware-tests.yml: playbook for localhost board testing
Diffstat (limited to 'ci/systemd')
| -rw-r--r-- | ci/systemd/tollgate-ci-listener.service | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/ci/systemd/tollgate-ci-listener.service b/ci/systemd/tollgate-ci-listener.service new file mode 100644 index 0000000..287f474 --- /dev/null +++ b/ci/systemd/tollgate-ci-listener.service | |||
| @@ -0,0 +1,18 @@ | |||
| 1 | [Unit] | ||
| 2 | Description=ESP32-TollGate CI Nostr Listener | ||
| 3 | After=network-online.target | ||
| 4 | Wants=network-online.target | ||
| 5 | |||
| 6 | [Service] | ||
| 7 | Type=simple | ||
| 8 | User=c03rad0r | ||
| 9 | WorkingDirectory=/home/c03rad0r/esp32-tollgate/ci/scripts | ||
| 10 | ExecStart=/usr/bin/python3 /home/c03rad0r/esp32-tollgate/ci/scripts/ci_listener.py | ||
| 11 | Restart=always | ||
| 12 | RestartSec=10 | ||
| 13 | Environment=CI_RELAY_URL=wss://ngit.orangesync.tech | ||
| 14 | Environment=CI_BRANCH=feature/tollgate-core-v2 | ||
| 15 | Environment=CI_REPO_ID=npub12m5exm2uk3xa674cc5r0hlyvccs5xxn7qv83ezuteefv5972nquq4j4szl/esp32-tollgate | ||
| 16 | |||
| 17 | [Install] | ||
| 18 | WantedBy=multi-user.target | ||