Files
hermes-deployment/.gitea/workflows/ci.yml
T
larry 6133d72106
CI / validate (push) Successful in 8s
chore: add CI workflow
2026-06-29 19:52:06 -05:00

40 lines
846 B
YAML

# GitOps CI Workflow - Tier 1 (Simple)
name: CI
on:
workflow_dispatch:
push:
branches: [main]
pull_request:
branches: [main]
env:
SERVICE_NAME: ${{ github.event.repository.name }}
NTFY_URL: http://ntfy.internal
jobs:
validate:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Prepare environment
run: |
if [ -f .env.example ]; then
cp .env.example .env
fi
- name: Validate Docker Compose
run: |
if [ -f docker-compose.yml ]; then
docker compose config
else
echo "No docker-compose.yml found"
fi
- name: Lint YAML files
run: |
pip install yamllint
yamllint -d "{extends: relaxed, rules: {line-length: disable}}" .