- deploy.yml: on push to main, builds linux/arm64 image, pushes to Gitea registry, deploys via SSH kubectl set image - ci.yml: gate to PRs targeting main only - finance-api deployment: imagePullPolicy Always so SHA-tagged images are always pulled on rollout Requires GitHub Actions secrets: GITEA_REGISTRY_PASSWORD, VPS_HOST, VPS_USER, VPS_SSH_KEY. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
22 lines
298 B
YAML
22 lines
298 B
YAML
name: ci
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: actions/setup-go@v5
|
|
with:
|
|
go-version-file: go.mod
|
|
|
|
- name: Test
|
|
run: go test ./...
|