ci / lint-prettier (push) Successful in 11s
ci / lint-ruff (push) Successful in 5s
ci / lint-yaml (push) Successful in 7s
ci / lint-dockerfiles (push) Successful in 5s
ci / validate (push) Successful in 7s
renovate-ci / validate-renovate (push) Successful in 1m21s
ci / build (push) Successful in 3s
ci / deploy-userbot-panel (push) Has been skipped
53 lines
1.4 KiB
YAML
53 lines
1.4 KiB
YAML
name: renovate-ci
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- main
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
validate-renovate:
|
|
runs-on: [self-hosted, linux, arch, homelab]
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Validate Renovate Compose draft
|
|
shell: bash
|
|
run: |
|
|
set -euo pipefail
|
|
trap 'rm -f renovate/.env' EXIT
|
|
printf '%s\n' \
|
|
'RENOVATE_ENDPOINT=https://gitea.example/api/v1' \
|
|
'RENOVATE_TOKEN=test-token' \
|
|
'RENOVATE_REPOSITORIES=forust/homelab' \
|
|
> renovate/.env
|
|
docker compose -f renovate/renovate-compose.yaml config --quiet
|
|
|
|
- name: Validate Kubernetes manifests
|
|
shell: bash
|
|
run: |
|
|
set -euo pipefail
|
|
docker run --rm \
|
|
-v "$PWD:/work" \
|
|
-w /work \
|
|
ghcr.io/yannh/kubeconform:latest \
|
|
-strict \
|
|
-ignore-missing-schemas \
|
|
-summary \
|
|
renovate/k8s/namespace.yaml \
|
|
renovate/k8s/configmap.yaml \
|
|
renovate/k8s/cronjob.yaml
|
|
|
|
- name: Validate Renovate repository config
|
|
shell: bash
|
|
run: |
|
|
set -euo pipefail
|
|
docker run --rm \
|
|
-v "$PWD:/work" \
|
|
-w /work \
|
|
renovate/renovate:44.83.2 \
|
|
renovate-config-validator renovate.json
|