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
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:
43
.gitea/workflows/creative.yml
Normal file
43
.gitea/workflows/creative.yml
Normal file
@@ -0,0 +1,43 @@
|
|||||||
|
name: Creative
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [master]
|
||||||
|
paths:
|
||||||
|
- 'Creative/**'
|
||||||
|
- 'Shared/**'
|
||||||
|
- 'AdPlatformServers.sln'
|
||||||
|
- '.gitea/workflows/creative.yml'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-deploy:
|
||||||
|
runs-on: host
|
||||||
|
env:
|
||||||
|
REGISTRY: 10.10.25.211:5000
|
||||||
|
IMAGE: adplatform/creative
|
||||||
|
SERVICE: creative
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Build service
|
||||||
|
run: dotnet build Creative/Creative.csproj --configuration Release
|
||||||
|
|
||||||
|
- name: Build image
|
||||||
|
run: |
|
||||||
|
podman build \
|
||||||
|
--layers \
|
||||||
|
-t ${{ env.REGISTRY }}/${{ env.IMAGE }}:latest \
|
||||||
|
-f Creative/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 }}"
|
||||||
43
.gitea/workflows/gateway.yml
Normal file
43
.gitea/workflows/gateway.yml
Normal file
@@ -0,0 +1,43 @@
|
|||||||
|
name: Gateway
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [master]
|
||||||
|
paths:
|
||||||
|
- 'Gateway/**'
|
||||||
|
- 'Shared/**' # adjust to your actual shared project folder name
|
||||||
|
- 'AdPlatformServers.sln'
|
||||||
|
- '.gitea/workflows/gateway.yml'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-deploy:
|
||||||
|
runs-on: host
|
||||||
|
env:
|
||||||
|
REGISTRY: 10.10.25.211:5000
|
||||||
|
IMAGE: adplatform/gateway
|
||||||
|
SERVICE: gateway
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Build service
|
||||||
|
run: dotnet build Gateway/Gateway.csproj --configuration Release
|
||||||
|
|
||||||
|
- name: Build image
|
||||||
|
run: |
|
||||||
|
podman build \
|
||||||
|
--layers \
|
||||||
|
-t ${{ env.REGISTRY }}/${{ env.IMAGE }}:latest \
|
||||||
|
-f Gateway/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 }}"
|
||||||
43
.gitea/workflows/googleapi.yml
Normal file
43
.gitea/workflows/googleapi.yml
Normal file
@@ -0,0 +1,43 @@
|
|||||||
|
name: GoogleApi
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [master]
|
||||||
|
paths:
|
||||||
|
- 'GoogleApi/**'
|
||||||
|
- 'Shared/**'
|
||||||
|
- 'AdPlatformServers.sln'
|
||||||
|
- '.gitea/workflows/googleapi.yml'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-deploy:
|
||||||
|
runs-on: host
|
||||||
|
env:
|
||||||
|
REGISTRY: 10.10.25.211:5000
|
||||||
|
IMAGE: adplatform/googleapi
|
||||||
|
SERVICE: googleapi
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Build service
|
||||||
|
run: dotnet build GoogleApi/GoogleApi.csproj --configuration Release
|
||||||
|
|
||||||
|
- name: Build image
|
||||||
|
run: |
|
||||||
|
podman build \
|
||||||
|
--layers \
|
||||||
|
-t ${{ env.REGISTRY }}/${{ env.IMAGE }}:latest \
|
||||||
|
-f GoogleApi/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 }}"
|
||||||
43
.gitea/workflows/intelligenceapi.yml
Normal file
43
.gitea/workflows/intelligenceapi.yml
Normal file
@@ -0,0 +1,43 @@
|
|||||||
|
name: IntelligenceApi
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [master]
|
||||||
|
paths:
|
||||||
|
- 'IntelligenceApi/**'
|
||||||
|
- 'Shared/**'
|
||||||
|
- 'AdPlatformServers.sln'
|
||||||
|
- '.gitea/workflows/intelligenceapi.yml'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-deploy:
|
||||||
|
runs-on: host
|
||||||
|
env:
|
||||||
|
REGISTRY: 10.10.25.211:5000
|
||||||
|
IMAGE: adplatform/intelligenceapi
|
||||||
|
SERVICE: intelligenceapi
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Build service
|
||||||
|
run: dotnet build IntelligenceApi/IntelligenceApi.csproj --configuration Release
|
||||||
|
|
||||||
|
- name: Build image
|
||||||
|
run: |
|
||||||
|
podman build \
|
||||||
|
--layers \
|
||||||
|
-t ${{ env.REGISTRY }}/${{ env.IMAGE }}:latest \
|
||||||
|
-f IntelligenceApi/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 }}"
|
||||||
43
.gitea/workflows/management.yml
Normal file
43
.gitea/workflows/management.yml
Normal file
@@ -0,0 +1,43 @@
|
|||||||
|
name: Management
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [master]
|
||||||
|
paths:
|
||||||
|
- 'Management/**'
|
||||||
|
- 'Shared/**'
|
||||||
|
- 'AdPlatformServers.sln'
|
||||||
|
- '.gitea/workflows/management.yml'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-deploy:
|
||||||
|
runs-on: host
|
||||||
|
env:
|
||||||
|
REGISTRY: 10.10.25.211:5000
|
||||||
|
IMAGE: adplatform/management
|
||||||
|
SERVICE: management
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Build service
|
||||||
|
run: dotnet build Management/Management.csproj --configuration Release
|
||||||
|
|
||||||
|
- name: Build image
|
||||||
|
run: |
|
||||||
|
podman build \
|
||||||
|
--layers \
|
||||||
|
-t ${{ env.REGISTRY }}/${{ env.IMAGE }}:latest \
|
||||||
|
-f Management/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 }}"
|
||||||
43
.gitea/workflows/metaapi.yml
Normal file
43
.gitea/workflows/metaapi.yml
Normal file
@@ -0,0 +1,43 @@
|
|||||||
|
name: MetaApi
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [master]
|
||||||
|
paths:
|
||||||
|
- 'MetaApi/**'
|
||||||
|
- 'Shared/**'
|
||||||
|
- 'AdPlatformServers.sln'
|
||||||
|
- '.gitea/workflows/metaapi.yml'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-deploy:
|
||||||
|
runs-on: host
|
||||||
|
env:
|
||||||
|
REGISTRY: 10.10.25.211:5000
|
||||||
|
IMAGE: adplatform/metaapi
|
||||||
|
SERVICE: metaapi
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Build service
|
||||||
|
run: dotnet build MetaApi/MetaApi.csproj --configuration Release
|
||||||
|
|
||||||
|
- name: Build image
|
||||||
|
run: |
|
||||||
|
podman build \
|
||||||
|
--layers \
|
||||||
|
-t ${{ env.REGISTRY }}/${{ env.IMAGE }}:latest \
|
||||||
|
-f MetaApi/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 }}"
|
||||||
43
.gitea/workflows/registration.yml
Normal file
43
.gitea/workflows/registration.yml
Normal 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 }}"
|
||||||
43
.gitea/workflows/tiktokapi.yml
Normal file
43
.gitea/workflows/tiktokapi.yml
Normal file
@@ -0,0 +1,43 @@
|
|||||||
|
name: TikTokApi
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [master]
|
||||||
|
paths:
|
||||||
|
- 'TikTokApi/**'
|
||||||
|
- 'Shared/**'
|
||||||
|
- 'AdPlatformServers.sln'
|
||||||
|
- '.gitea/workflows/tiktokapi.yml'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-deploy:
|
||||||
|
runs-on: host
|
||||||
|
env:
|
||||||
|
REGISTRY: 10.10.25.211:5000
|
||||||
|
IMAGE: adplatform/tiktokapi
|
||||||
|
SERVICE: tiktokapi
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Build service
|
||||||
|
run: dotnet build TikTokApi/TikTokApi.csproj --configuration Release
|
||||||
|
|
||||||
|
- name: Build image
|
||||||
|
run: |
|
||||||
|
podman build \
|
||||||
|
--layers \
|
||||||
|
-t ${{ env.REGISTRY }}/${{ env.IMAGE }}:latest \
|
||||||
|
-f TikTokApi/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 }}"
|
||||||
Reference in New Issue
Block a user