mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-12-07 09:56:41 +00:00
See details: https://chatgpt.com/share/6931f775-12d4-800f-9ccb-e6ce52097f9c
80 lines
2.2 KiB
YAML
80 lines
2.2 KiB
YAML
name: Build & Test Infinito.Nexus CLI in Docker Container
|
||
|
||
on:
|
||
push:
|
||
branches:
|
||
- main
|
||
- master
|
||
- develop
|
||
- "*"
|
||
pull_request:
|
||
|
||
jobs:
|
||
test-deploy:
|
||
runs-on: ubuntu-latest
|
||
timeout-minutes: 240
|
||
|
||
env:
|
||
EXCLUDED_ROLES: >
|
||
drv-lid-switch,
|
||
svc-db-memcached,
|
||
svc-db-redis,
|
||
svc-net-wireguard-core,
|
||
svc-net-wireguard-firewalled,
|
||
svc-net-wireguard-plain,
|
||
svc-bkp-loc-2-usb,
|
||
svc-bkp-rmt-2-loc,
|
||
svc-opt-keyboard-color,
|
||
svc-opt-ssd-hdd,
|
||
web-app-bridgy-fed,
|
||
web-app-oauth2-proxy,
|
||
web-app-postmarks,
|
||
web-app-elk,
|
||
web-app-syncope,
|
||
web-app-socialhome,
|
||
web-svc-xmpp,
|
||
|
||
INFINITO_IMAGE: infinito:latest
|
||
|
||
steps:
|
||
- name: Main Checkout repository
|
||
uses: actions/checkout@v4
|
||
|
||
- name: Show Docker version
|
||
run: docker version
|
||
|
||
# 1) First deploy: normal + debug (mit Build)
|
||
- name: First deploy (normal + debug)
|
||
run: |
|
||
python -m cli.deploy.container run --image "$INFINITO_IMAGE" --build -- \
|
||
--exclude "$EXCLUDED_ROLES" \
|
||
--authorized-keys "ssh-ed25519 AAAA_TEST_DUMMY_KEY github-ci-dummy@infinito" \
|
||
-- \
|
||
-T server \
|
||
--debug \
|
||
--skip-cleanup \
|
||
--skip-tests
|
||
|
||
# 2) Second deploy: reset + debug (ohne Build, nur reuse Image)
|
||
- name: Second deploy (--reset --debug)
|
||
run: |
|
||
python -m cli.deploy.container run --image "$INFINITO_IMAGE" -- \
|
||
--exclude "$EXCLUDED_ROLES" \
|
||
--authorized-keys "ssh-ed25519 AAAA_TEST_DUMMY_KEY github-ci-dummy@infinito" \
|
||
-- \
|
||
-T server \
|
||
--reset \
|
||
--debug \
|
||
--skip-cleanup \
|
||
--skip-tests
|
||
|
||
# 3) Third deploy: async deploy – no debug
|
||
- name: Third deploy (async deploy – no debug)
|
||
run: |
|
||
python -m cli.deploy.container run --image "$INFINITO_IMAGE" -- \
|
||
--exclude "$EXCLUDED_ROLES" \
|
||
--authorized-keys "ssh-ed25519 AAAA_TEST_DUMMY_KEY github-ci-dummy@infinito" \
|
||
-- \
|
||
-T server \
|
||
--skip-cleanup \
|
||
--skip-tests |