chore(ci): bootstrap CI + hooks
Squash-merge bootstrap-cicd into integration
This commit is contained in:
24
.gitea/workflows/ci.yml
Normal file
24
.gitea/workflows/ci.yml
Normal 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"
|
||||
|
19
.gitea/workflows/nightly.yml
Normal file
19
.gitea/workflows/nightly.yml
Normal 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"
|
||||
|
29
.gitea/workflows/release.yml
Normal file
29
.gitea/workflows/release.yml
Normal 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 }}
|
||||
|
Reference in New Issue
Block a user