This commit is contained in:
35
.gitea/workflows/commit.yaml
Normal file
35
.gitea/workflows/commit.yaml
Normal file
@@ -0,0 +1,35 @@
|
||||
name: Commit
|
||||
|
||||
on:
|
||||
push:
|
||||
# only trigger on branches, not on tags
|
||||
branches: '**'
|
||||
|
||||
jobs:
|
||||
# Job 1: Lint and Test (Type Check)
|
||||
ci:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install pnpm
|
||||
uses: pnpm/action-setup@v4
|
||||
with:
|
||||
version: 9
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version: 25
|
||||
cache: 'pnpm'
|
||||
|
||||
- name: Install dependencies
|
||||
run: pnpm install --frozen-lockfile
|
||||
|
||||
- name: Lint (Prettier & ESLint)
|
||||
run: pnpm lint
|
||||
|
||||
- name: Type Check (Svelte Check)
|
||||
# Based on your package.json "check" script
|
||||
run: pnpm check
|
||||
28
.gitea/workflows/pr.yaml
Normal file
28
.gitea/workflows/pr.yaml
Normal file
@@ -0,0 +1,28 @@
|
||||
name: PullRequest
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches: ['main', 'dev']
|
||||
|
||||
jobs:
|
||||
publish:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: https://github.com/actions/checkout@v4
|
||||
- name: Set up Docker Buildx
|
||||
uses: https://github.com/docker/setup-buildx-action@v3
|
||||
with:
|
||||
config-inline: |
|
||||
[registry."git.schreifuchs.ch"]
|
||||
http = true
|
||||
insecure = true
|
||||
|
||||
- name: login
|
||||
run: docker login -u schreifuchs -p ${{ secrets.REGISTRY_TOKEN }} git.schreifuchs.ch
|
||||
- name: Build and push Docker image
|
||||
uses: https://github.com/docker/build-push-action@v5
|
||||
with:
|
||||
context: .
|
||||
file: ./Dockerfile
|
||||
push: true
|
||||
tags: 'git.schreifuchs.ch/schreifuchs/aktiteil:pr-${{ github.ref_name }}'
|
||||
29
.gitea/workflows/release.yaml
Normal file
29
.gitea/workflows/release.yaml
Normal file
@@ -0,0 +1,29 @@
|
||||
name: Release
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- 'v[0-9]+.[0-9]+.[0-9]+'
|
||||
|
||||
jobs:
|
||||
publish:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: https://github.com/actions/checkout@v4
|
||||
- name: Set up Docker Buildx
|
||||
uses: https://github.com/docker/setup-buildx-action@v3
|
||||
with:
|
||||
config-inline: |
|
||||
[registry."git.schreifuchs.ch"]
|
||||
http = true
|
||||
insecure = true
|
||||
|
||||
- name: login
|
||||
run: docker login -u schreifuchs -p ${{ secrets.REGISTRY_TOKEN }} git.schreifuchs.ch
|
||||
- name: Build and push Docker image
|
||||
uses: https://github.com/docker/build-push-action@v5
|
||||
with:
|
||||
context: .
|
||||
file: ./Dockerfile
|
||||
push: true
|
||||
tags: 'git.schreifuchs.ch/schreifuchs/aktiteil:${{ github.ref_name }},git.schreifuchs.ch/aktiteil/tdontd:latest'
|
||||
Reference in New Issue
Block a user