M5 CI: Job-Image node:22-bookworm@sha256:7702d8aa... (checkout ist Node-Action), python3 je Job via apt
Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
@@ -2,49 +2,57 @@ name: ci-static
|
||||
|
||||
# Statische CI ohne Serverzugang (GNAI-001 Meilenstein 5, erster Schritt):
|
||||
# Secret-Scan, YAML-Lint, Ansible-Syntax-Check aller Projekte, Markdown-Links.
|
||||
# Images sind per Digest gepinnt; Runner siehe proxmox/lxc/ct-116-runner.
|
||||
# Job-Image node:22-bookworm (actions/checkout ist ein Node-Action) per Digest
|
||||
# gepinnt; python3 wird pro Job nachinstalliert. Runner: CT 116 (ci-static-01).
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
branches: [main]
|
||||
|
||||
env:
|
||||
DEBIAN_FRONTEND: noninteractive
|
||||
|
||||
jobs:
|
||||
secret-scan:
|
||||
runs-on: [ubuntu-latest]
|
||||
container:
|
||||
image: python:3.13-bookworm@sha256:cc55e4ded9c95f6ce2133b3d096db43f214d280c2a8af65d83e246c8fa7d168c
|
||||
image: node:22-bookworm@sha256:7702d8aa4d5910871692af4480eb3ba86f23047a6417a44d857d06c95d060d3f
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: python3 installieren
|
||||
run: apt-get update -qq && apt-get install -y -qq python3 >/dev/null
|
||||
- name: Secret-Scan (Private Keys, AWS-Keys, WG-PSK-Muster)
|
||||
run: python3 scripts/ci/secret_scan.py
|
||||
|
||||
yamllint:
|
||||
runs-on: [ubuntu-latest]
|
||||
container:
|
||||
image: python:3.13-bookworm@sha256:cc55e4ded9c95f6ce2133b3d096db43f214d280c2a8af65d83e246c8fa7d168c
|
||||
image: node:22-bookworm@sha256:7702d8aa4d5910871692af4480eb3ba86f23047a6417a44d857d06c95d060d3f
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: yamllint installieren (gepinnt)
|
||||
run: pip install --no-cache-dir -r ci/requirements-ci.txt
|
||||
- name: python3 + pip installieren, CI-Tools gepinnt
|
||||
run: apt-get update -qq && apt-get install -y -qq python3 python3-pip >/dev/null && pip install --no-cache-dir --break-system-packages -r ci/requirements-ci.txt
|
||||
- name: YAML-Lint
|
||||
run: yamllint -c .yamllint $(git ls-files '*.yml' '*.yaml' | grep -v -E '^\.venv/|\.ansible/')
|
||||
run: yamllint -c .yamllint $(git ls-files -z '*.yml' '*.yaml' | tr '\0' '\n' | grep -v -E '^\.venv/|\.ansible/')
|
||||
|
||||
ansible-syntax:
|
||||
runs-on: [ubuntu-latest]
|
||||
container:
|
||||
image: python:3.13-bookworm@sha256:cc55e4ded9c95f6ce2133b3d096db43f214d280c2a8af65d83e246c8fa7d168c
|
||||
image: node:22-bookworm@sha256:7702d8aa4d5910871692af4480eb3ba86f23047a6417a44d857d06c95d060d3f
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: ansible-core installieren (gepinnt wie Control-Node)
|
||||
run: pip install --no-cache-dir -r shared/ansible/requirements-control.txt
|
||||
- name: python3 + pip installieren, ansible-core gepinnt (wie Control-Node)
|
||||
run: apt-get update -qq && apt-get install -y -qq python3 python3-pip >/dev/null && pip install --no-cache-dir --break-system-packages -r shared/ansible/requirements-control.txt
|
||||
- name: Syntax-Check aller Ansible-Projekte
|
||||
run: bash scripts/ci/check_ansible_syntax.sh
|
||||
|
||||
markdown-links:
|
||||
runs-on: [ubuntu-latest]
|
||||
container:
|
||||
image: python:3.13-bookworm@sha256:cc55e4ded9c95f6ce2133b3d096db43f214d280c2a8af65d83e246c8fa7d168c
|
||||
image: node:22-bookworm@sha256:7702d8aa4d5910871692af4480eb3ba86f23047a6417a44d857d06c95d060d3f
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: python3 installieren
|
||||
run: apt-get update -qq && apt-get install -y -qq python3 >/dev/null
|
||||
- name: Relative Markdown-Links pruefen
|
||||
run: python3 scripts/ci/check_links.py
|
||||
|
||||
Reference in New Issue
Block a user