Initial version (#1)
All checks were successful
Build / build (push) Successful in 41s
Lint / lint (push) Successful in 13s

Co-authored-by: Julien Valverdé <julien.valverde@mailo.com>
Reviewed-on: #1
This commit was merged in pull request #1.
This commit is contained in:
2025-09-18 01:26:10 +02:00
parent ab2fff9a9f
commit c0cac90a66
47 changed files with 1633 additions and 0 deletions

View File

@@ -0,0 +1,48 @@
name: Build
run-name: Build
on:
pull_request:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Checkout
uses: actions/checkout@v4
- name: Login to Container Registry
if: ${{ gitea.event_name != 'pull_request' }}
uses: docker/login-action@v3
with:
registry: docker.valverde.cloud
username: ${{ secrets.DOCKER_REGISTRY_USERNAME }}
password: ${{ secrets.DOCKER_REGISTRY_PASSWORD }}
- name: Generate Docker metadata
id: meta
uses: docker/metadata-action@v5
with:
images: |
docker.valverde.cloud/${{ gitea.repository }}
tags: |
type=ref,event=branch
type=ref,event=tag
type=ref,event=pr
type=sha
flavor: |
latest=true
- name: Build
uses: docker/build-push-action@v6
with:
context: .
file: ./Dockerfile
push: ${{ gitea.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

View File

@@ -0,0 +1,21 @@
name: Lint
run-name: Lint
on:
push:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Set up Bun
uses: oven-sh/setup-bun@v1
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: "20"
- name: Checkout
uses: actions/checkout@v4
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Lint TypeScript
run: npm run lint:tsc