Files
Snip/.gitea/workflows/buildanddeploy.yml
T
sittichok OuamsiriandClaude Opus 5.5 6d05da63fb fix(ci): push images to registry at 10.2.0.10
The shared template still defaults to the pre-move 192.168.1.17, so the
image push failed with 'no route to host'.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-10 00:17:48 +07:00

37 lines
1.1 KiB
YAML

name: Auto Build and Deploy
on:
push:
tags:
- 'v*'
permissions:
contents: read
actions: read
packages: write
jobs:
trigger-internal-build:
uses: infras/workflow-templates/.gitea/workflows/docker-template.yml@736cd715b4b9c80f20ec51ef8445cb630c8299f5
with:
image_name: 'snip'
image_tag: ${{ gitea.ref_name }}
# Template default (192.168.1.17) is the pre-move LAN address; the
# registry (Gitea on TrueNAS) now lives on 10.2.0.10.
registry_domain: '10.2.0.10:30008'
secrets:
REGISTRY_USER: ${{ secrets.REGISTRY_USER }}
REGISTRY_TOKEN: ${{ secrets.REGISTRY_TOKEN }}
bump-compose:
needs: trigger-internal-build
uses: infras/workflow-templates/.gitea/workflows/bump-compose-version.yml@736cd715b4b9c80f20ec51ef8445cb630c8299f5
with:
app: snip
updates: |
snip-migrate:${{ gitea.ref_name }}
snip-api:${{ gitea.ref_name }}
snip-frontend:${{ gitea.ref_name }}
snip-redirect:${{ gitea.ref_name }}
secrets:
COMPOSE_TOKEN: ${{ secrets.COMPOSE_TOKEN }}