Initial Commit
Some checks are pending
Build Docker Image / docker (push) Waiting to run
Test / test (push) Waiting to run

This commit is contained in:
Lillith Rose (Device: Lucia) 2025-06-08 14:33:19 -04:00
commit fdeba8fd41
17 changed files with 2290 additions and 0 deletions

40
.github/workflows/docker.yml vendored Normal file
View file

@ -0,0 +1,40 @@
name: Build Docker Image
on:
push:
workflow_dispatch:
permissions:
contents: read
packages: write
jobs:
docker:
runs-on: ubuntu-latest
if: github.repository != 'lillithkt/template'
env:
REPO: ${{ github.repository.name }}
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v3.6.0
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3.10.0
- name: Login to GitHub Container Registry
uses: docker/login-action@v3.4.0
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: downcase REPO
shell: bash
run: |
echo "REPO=${GITHUB_REPOSITORY##*/}" >>${GITHUB_ENV}
- name: Build and push
uses: docker/build-push-action@v6.15.0
with:
push: true
file: Dockerfile
platforms: linux/amd64
tags: ghcr.io/lillithkt/${{ env.REPO }}:latest
cache-from: type=gha
cache-to: type=gha,mode=max

25
.github/workflows/test.yml vendored Normal file
View file

@ -0,0 +1,25 @@
name: Test
on:
push:
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4.2.2
- name: Setup pnpm
uses: pnpm/action-setup@v4.1.0
- name: Setup Node
uses: actions/setup-node@v4.2.0
with:
node-version: 22.13.1
cache: 'pnpm'
- name: Install Dependencies
run: pnpm install --frozen-lockfile
- name: Build
run: pnpm build
- name: Test
run: pnpm test