chore: per-service CI pipelines with local registry
All checks were successful
Creative / build-deploy (push) Successful in 2m41s
Gateway / build-deploy (push) Successful in 2m0s
GoogleApi / build-deploy (push) Successful in 8m1s
IntelligenceApi / build-deploy (push) Successful in 1m58s
Management / build-deploy (push) Successful in 3m19s
MetaApi / build-deploy (push) Successful in 2m12s
Registration / build-deploy (push) Successful in 6m19s
TikTokApi / build-deploy (push) Successful in 4m10s

This commit is contained in:
Grae Jones
2026-03-21 11:00:46 -07:00
parent 9fa2c774a7
commit 1ea8716ac6
9 changed files with 344 additions and 0 deletions

View File

@@ -0,0 +1,43 @@
name: Registration
on:
push:
branches: [master]
paths:
- 'Registration/**'
- 'Shared/**'
- 'AdPlatformServers.sln'
- '.gitea/workflows/registration.yml'
jobs:
build-deploy:
runs-on: host
env:
REGISTRY: 10.10.25.211:5000
IMAGE: adplatform/registration
SERVICE: registration
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Build service
run: dotnet build Registration/Registration.csproj --configuration Release
- name: Build image
run: |
podman build \
--layers \
-t ${{ env.REGISTRY }}/${{ env.IMAGE }}:latest \
-f Registration/Dockerfile \
.
- name: Push to local registry
run: podman push ${{ env.REGISTRY }}/${{ env.IMAGE }}:latest
- name: Deploy on app server
run: |
ssh -i ~/.ssh/gitea_runner root@10.10.25.211 \
"podman pull ${{ env.REGISTRY }}/${{ env.IMAGE }}:latest && \
cd /opt/adplatform && \
podman-compose up -d --no-deps --force-recreate ${{ env.SERVICE }}"