Files
computer-playbook/.github/workflows/test-deploy-server.yml
T
kevinveenbirkenbach bbea43f669 refactor(ci,tests): migrate discovery and local deploy to development compose stack
- Replace legacy ci scripts with meta build-test-matrix and resolve-invokable-roles
- Switch log tailing to scripts/meta/log-tail.sh
- Rename local DNS helpers to scripts/dns/*
- Run ci-deploy-discover via development docker-up
- Replace deploy-local-full with development compose orchestrator
- Ensure INFINITO_DISTRO is passed explicitly for local full deploy

https://chatgpt.com/share/696f9ccd-e4d8-800f-9c67-9c071188ecd0
https://chatgpt.com/share/696facf5-b2fc-800f-8a33-3352dd193c54
2026-01-20 17:27:09 +01:00

108 lines
2.4 KiB
YAML

name: Test Infinito.Nexus Deploy (server)
on:
workflow_call:
inputs:
distros:
description: "Space-separated distro list"
required: true
type: string
permissions:
contents: read
packages: read
env:
TEST_DEPLOY_TYPE: server
DISTROS: ${{ inputs.distros }}
ONLY_APP: ""
NIX_CONFIG: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
INFINITO_IMAGE_TAG: ci-${{ github.sha }}
jobs:
discover:
name: discover apps (arch)
runs-on: ubuntu-latest
timeout-minutes: 60
outputs:
apps: ${{ steps.discover.outputs.apps }}
steps:
- uses: actions/checkout@v6
- name: Install jq
shell: bash
run: |
set -euo pipefail
sudo apt-get update
sudo apt-get install -y jq
- name: Install deps (jq + envsubst)
shell: bash
run: |
set -euo pipefail
sudo apt-get update
sudo apt-get install -y jq gettext-base
- name: Start stack for discovery (arch)
shell: bash
run: |
set -euo pipefail
make docker-up
- name: Discover apps
id: discover
run: |
make ci-discover-output
server:
name: deploy:server (${{ matrix.app }})
runs-on: ubuntu-latest
timeout-minutes: 240
needs: discover
strategy:
fail-fast: false
matrix:
app: ${{ fromJson(needs.discover.outputs.apps) }}
steps:
- uses: actions/checkout@v6
- name: Install jq
shell: bash
run: |
set -euo pipefail
sudo apt-get update
sudo apt-get install -y jq
- name: Start stack (arch)
shell: bash
run: |
set -euo pipefail
make docker-up
- name: Deploy app
shell: bash
run: |
set -euo pipefail
export TEST_DEPLOY_TYPE="server"
export APP="${{ matrix.app }}"
make ci-deploy-app
- name: Show last 200 log lines on failure
if: failure()
shell: bash
run: |
scripts/meta/log-tail.sh logs 200
- name: Upload deploy logs
if: ${{ always() && env.ACT != 'true' }}
uses: actions/upload-artifact@v4
with:
name: deploy-logs-server-${{ matrix.app }}
path: logs/
if-no-files-found: warn
retention-days: 14