2025-02-11 10:52:44 +08:00
|
|
|
name: Auth & User Management Service CI
|
|
|
|
|
2025-02-11 11:00:33 +08:00
|
|
|
on: [push]
|
2025-02-11 09:57:08 +08:00
|
|
|
|
|
|
|
jobs:
|
2025-02-11 14:23:42 +08:00
|
|
|
build-services:
|
2025-02-11 09:57:08 +08:00
|
|
|
runs-on: runner
|
2025-02-11 14:23:42 +08:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- service: user_management
|
|
|
|
dockerfile: app/user_management/Dockerfile
|
|
|
|
image: user_manager
|
|
|
|
- service: ranking_management
|
|
|
|
dockerfile: app/ranking_management/Dockerfile
|
|
|
|
image: ranking_management
|
|
|
|
- service: douyin_ecpm_calculation_service
|
|
|
|
dockerfile: app/douyin_ecpm_calculation_service/Dockerfile
|
|
|
|
image: douyin_ecpm_calculation_service
|
|
|
|
- service: auth_service
|
|
|
|
dockerfile: app/auth_service/Dockerfile
|
|
|
|
image: auth_service
|
2025-02-11 09:57:08 +08:00
|
|
|
steps:
|
2025-02-11 14:23:42 +08:00
|
|
|
- uses: https://gitea.youtukeji.com.cn/actions/checkout@v4
|
2025-02-11 14:06:30 +08:00
|
|
|
|
2025-02-11 14:23:42 +08:00
|
|
|
- uses: https://gitea.youtukeji.com.cn/actions/setup-go@v5
|
2025-02-11 14:06:30 +08:00
|
|
|
with:
|
|
|
|
go-version: '1.23.6'
|
2025-02-11 13:41:44 +08:00
|
|
|
|
2025-02-11 14:23:42 +08:00
|
|
|
- name: Verify Go version
|
|
|
|
run: go version
|
2025-02-11 14:06:30 +08:00
|
|
|
|
2025-02-11 14:23:42 +08:00
|
|
|
- name: Build Docker Image
|
|
|
|
run: docker build -t ${{ matrix.image }} -f ${{ matrix.dockerfile }} .
|