f88687c182
- Explicitly track latest core (1.6.23); the @better-auth/cli lags at 1.4.21 and pulled a second core copy — replaced with a getMigrations() script on the same version (src/migrate.ts). - CI build job matches the proven pattern (no setup-buildx; plain build/push).
36 lines
926 B
YAML
36 lines
926 B
YAML
name: build
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: catthehacker/ubuntu:act-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: "22"
|
|
- run: npm ci
|
|
- run: npm run typecheck
|
|
|
|
build:
|
|
needs: test
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 20
|
|
env:
|
|
IMAGE: git.farh.net/farhoodlabs/intervalsicu-mcp-auth
|
|
DOCKER_BUILDKIT: "1"
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Login to registry
|
|
run: echo "${{ secrets.REGISTRY_TOKEN }}" | docker login git.farh.net -u cpfarhood --password-stdin
|
|
- name: Build image
|
|
run: docker build --progress=plain -t "${IMAGE}:latest" -t "${IMAGE}:${GITHUB_SHA}" .
|
|
- name: Push image
|
|
run: |
|
|
docker push "${IMAGE}:latest"
|
|
docker push "${IMAGE}:${GITHUB_SHA}"
|