chore(ci): bootstrap CI + hooks
Some checks failed
CI / checks (pull_request) Waiting to run
CI / checks (push) Has been cancelled

Squash-merge bootstrap-cicd into integration
This commit is contained in:
2025-09-10 21:48:32 +00:00
parent 575b33f744
commit 408db0d0cc
19 changed files with 671 additions and 0 deletions

24
.gitea/workflows/ci.yml Normal file
View File

@@ -0,0 +1,24 @@
name: CI
on:
pull_request:
branches: ["**"]
push:
branches: ["integration", "bootstrap", "bootstrap-cicd"]
jobs:
checks:
runs-on: docker
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build CI image
run: docker build -f ci.Dockerfile -t local/ci:latest .
- name: Lint
run: docker run --rm -v ${{ github.workspace }}:/workspace local/ci:latest bash -lc "cd /workspace && IN_CI_CONTAINER=1 scripts/ci lint"
- name: Build validation
run: docker run --rm -v ${{ github.workspace }}:/workspace local/ci:latest bash -lc "cd /workspace && IN_CI_CONTAINER=1 scripts/ci build"

View File

@@ -0,0 +1,19 @@
name: Nightly
on:
schedule:
- cron: '0 3 * * *'
jobs:
report:
runs-on: docker
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build CI image
run: docker build -f ci.Dockerfile -t local/ci:latest .
- name: Lint (nightly)
run: docker run --rm -v ${{ github.workspace }}:/workspace local/ci:latest bash -lc "cd /workspace && IN_CI_CONTAINER=1 scripts/ci lint"

View File

@@ -0,0 +1,29 @@
name: Release
on:
push:
branches: ["main"]
jobs:
tag-and-notes:
runs-on: docker
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build CI image
run: docker build -f ci.Dockerfile -t local/ci:latest .
- name: Compute tag
id: tag
run: |
TZ=UTC date +"v%Y.%m.%d-%H%M" > tag.txt
echo "tag=$(cat tag.txt)" >> $GITHUB_OUTPUT
- name: Create annotated tag
run: |
git config user.name "ci"
git config user.email "ci@local"
git tag -a ${{ steps.tag.outputs.tag }} -m "Release ${{ steps.tag.outputs.tag }}"
git push origin ${{ steps.tag.outputs.tag }}