Compare commits
2 Commits
todo/mvp0-
...
dev
| Author | SHA1 | Date | |
|---|---|---|---|
|
c174f840bc
|
|||
|
334a5e3526
|
4
.env.gitea-runner.example
Normal file
4
.env.gitea-runner.example
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
GITEA_INSTANCE_URL="https://git.example.com"
|
||||||
|
GITEA_RUNNER_REGISTRATION_TOKEN="replace-with-runner-registration-token"
|
||||||
|
GITEA_RUNNER_NAME="cms-runner"
|
||||||
|
GITEA_RUNNER_LABELS="ubuntu-latest:docker://node:20-bookworm"
|
||||||
@@ -17,7 +17,7 @@ env:
|
|||||||
jobs:
|
jobs:
|
||||||
quality:
|
quality:
|
||||||
name: Lint Typecheck Tests
|
name: Lint Typecheck Tests
|
||||||
runs-on: ubuntu-latest
|
runs-on: node22-bun
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@@ -50,7 +50,7 @@ jobs:
|
|||||||
|
|
||||||
build_staging_images:
|
build_staging_images:
|
||||||
name: Build Staging Images
|
name: Build Staging Images
|
||||||
runs-on: ubuntu-latest
|
runs-on: node22-bun
|
||||||
needs: quality
|
needs: quality
|
||||||
if: github.ref == 'refs/heads/staging'
|
if: github.ref == 'refs/heads/staging'
|
||||||
steps:
|
steps:
|
||||||
@@ -65,7 +65,7 @@ jobs:
|
|||||||
|
|
||||||
build_production_images:
|
build_production_images:
|
||||||
name: Build Production Images
|
name: Build Production Images
|
||||||
runs-on: ubuntu-latest
|
runs-on: node22-bun
|
||||||
needs: quality
|
needs: quality
|
||||||
if: startsWith(github.ref, 'refs/tags/v')
|
if: startsWith(github.ref, 'refs/tags/v')
|
||||||
steps:
|
steps:
|
||||||
@@ -92,7 +92,7 @@ jobs:
|
|||||||
|
|
||||||
deploy_staging:
|
deploy_staging:
|
||||||
name: Deploy Staging (Placeholder)
|
name: Deploy Staging (Placeholder)
|
||||||
runs-on: ubuntu-latest
|
runs-on: node22-bun
|
||||||
needs: build_staging_images
|
needs: build_staging_images
|
||||||
if: github.ref == 'refs/heads/staging'
|
if: github.ref == 'refs/heads/staging'
|
||||||
steps:
|
steps:
|
||||||
@@ -103,7 +103,7 @@ jobs:
|
|||||||
|
|
||||||
deploy_production:
|
deploy_production:
|
||||||
name: Deploy Production (Placeholder)
|
name: Deploy Production (Placeholder)
|
||||||
runs-on: ubuntu-latest
|
runs-on: node22-bun
|
||||||
needs: build_production_images
|
needs: build_production_images
|
||||||
if: startsWith(github.ref, 'refs/tags/v')
|
if: startsWith(github.ref, 'refs/tags/v')
|
||||||
steps:
|
steps:
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ env:
|
|||||||
jobs:
|
jobs:
|
||||||
governance:
|
governance:
|
||||||
name: Governance Checks
|
name: Governance Checks
|
||||||
runs-on: ubuntu-latest
|
runs-on: node22-bun
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@@ -57,7 +57,7 @@ jobs:
|
|||||||
quality:
|
quality:
|
||||||
name: Lint Typecheck Unit E2E
|
name: Lint Typecheck Unit E2E
|
||||||
needs: governance
|
needs: governance
|
||||||
runs-on: ubuntu-latest
|
runs-on: node22-bun
|
||||||
services:
|
services:
|
||||||
postgres:
|
postgres:
|
||||||
image: postgres:16-alpine
|
image: postgres:16-alpine
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
name: Deploy Compose Stack
|
name: Deploy Compose Stack
|
||||||
runs-on: ubuntu-latest
|
runs-on: node22-bun
|
||||||
steps:
|
steps:
|
||||||
- name: Resolve deployment target
|
- name: Resolve deployment target
|
||||||
id: target
|
id: target
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ env:
|
|||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
name: Build Push Changelog
|
name: Build Push Changelog
|
||||||
runs-on: ubuntu-latest
|
runs-on: node22-bun
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|||||||
1
.gitignore
vendored
1
.gitignore
vendored
@@ -24,6 +24,7 @@ test-results
|
|||||||
!.env.example
|
!.env.example
|
||||||
!.env.staging.example
|
!.env.staging.example
|
||||||
!.env.production.example
|
!.env.production.example
|
||||||
|
!.env.gitea-runner.example
|
||||||
|
|
||||||
# prisma
|
# prisma
|
||||||
packages/db/prisma/dev.db*
|
packages/db/prisma/dev.db*
|
||||||
|
|||||||
@@ -119,12 +119,20 @@ Environment examples:
|
|||||||
|
|
||||||
- `.env.staging.example`
|
- `.env.staging.example`
|
||||||
- `.env.production.example`
|
- `.env.production.example`
|
||||||
|
- `.env.gitea-runner.example`
|
||||||
|
|
||||||
Notes:
|
Notes:
|
||||||
|
|
||||||
- `dev` remains your local non-docker Bun workflow.
|
- `dev` remains your local non-docker Bun workflow.
|
||||||
- Staging and production compose files are templates and still require real secrets, registry strategy, and deployment host wiring.
|
- Staging and production compose files are templates and still require real secrets, registry strategy, and deployment host wiring.
|
||||||
|
|
||||||
|
Gitea Actions runner compose (self-hosted):
|
||||||
|
|
||||||
|
```bash
|
||||||
|
cp .env.gitea-runner.example .env.gitea-runner
|
||||||
|
docker compose --env-file .env.gitea-runner -f docker-compose.gitea-runner.yml up -d
|
||||||
|
```
|
||||||
|
|
||||||
## Changelog
|
## Changelog
|
||||||
|
|
||||||
- Changelog file: `CHANGELOG.md`
|
- Changelog file: `CHANGELOG.md`
|
||||||
|
|||||||
13
docker-compose.gitea-runner.yml
Normal file
13
docker-compose.gitea-runner.yml
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
services:
|
||||||
|
gitea-runner:
|
||||||
|
image: gitea/act_runner:latest
|
||||||
|
container_name: cms-gitea-runner
|
||||||
|
restart: unless-stopped
|
||||||
|
environment:
|
||||||
|
GITEA_INSTANCE_URL: "${GITEA_INSTANCE_URL}"
|
||||||
|
GITEA_RUNNER_REGISTRATION_TOKEN: "${GITEA_RUNNER_REGISTRATION_TOKEN}"
|
||||||
|
GITEA_RUNNER_NAME: "${GITEA_RUNNER_NAME:-cms-runner}"
|
||||||
|
GITEA_RUNNER_LABELS: "${GITEA_RUNNER_LABELS:-ubuntu-latest:docker://node:20-bookworm}"
|
||||||
|
volumes:
|
||||||
|
- ./runner-data:/data
|
||||||
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
Reference in New Issue
Block a user