feat: add tts-gateway module to CI workflow and Dockerfiles
This commit is contained in:
parent
5238298b55
commit
1b025301d0
@ -31,6 +31,7 @@ jobs:
|
|||||||
ai-gateway/go.sum
|
ai-gateway/go.sum
|
||||||
ha-gateway/go.sum
|
ha-gateway/go.sum
|
||||||
discord-bot/go.sum
|
discord-bot/go.sum
|
||||||
|
tts-gateway/go.sum
|
||||||
gen/go.sum
|
gen/go.sum
|
||||||
|
|
||||||
- name: go vet
|
- name: go vet
|
||||||
@ -39,6 +40,7 @@ jobs:
|
|||||||
cd ../ai-gateway && go vet ./...
|
cd ../ai-gateway && go vet ./...
|
||||||
cd ../ha-gateway && go vet ./...
|
cd ../ha-gateway && go vet ./...
|
||||||
cd ../discord-bot && go vet ./...
|
cd ../discord-bot && go vet ./...
|
||||||
|
cd ../tts-gateway && go vet ./...
|
||||||
|
|
||||||
- name: go test
|
- name: go test
|
||||||
run: |
|
run: |
|
||||||
@ -46,6 +48,7 @@ jobs:
|
|||||||
cd ../ai-gateway && go test ./...
|
cd ../ai-gateway && go test ./...
|
||||||
cd ../ha-gateway && go test ./...
|
cd ../ha-gateway && go test ./...
|
||||||
cd ../discord-bot && go test ./...
|
cd ../discord-bot && go test ./...
|
||||||
|
cd ../tts-gateway && go test ./...
|
||||||
|
|
||||||
build-ai-gateway:
|
build-ai-gateway:
|
||||||
needs: test
|
needs: test
|
||||||
|
|||||||
@ -139,4 +139,4 @@ mutation, and is fine to run.
|
|||||||
|
|
||||||
## CI
|
## CI
|
||||||
|
|
||||||
`.gitea/workflows/ci.yaml` runs `go vet` and `go test` for all four modules (`gen`, `ai-gateway`, `ha-gateway`, `discord-bot`), then builds and pushes Docker images for the three services on pushes to `main`.
|
`.gitea/workflows/ci.yaml` runs `go vet` and `go test` for all five modules (`gen`, `ai-gateway`, `ha-gateway`, `discord-bot`, `tts-gateway`), then builds and pushes Docker images for `ai-gateway`, `ha-gateway`, and `discord-bot` on pushes to `main`. `tts-gateway` is deliberately excluded from the build/push step for now — its production image (CUDA base, model artifact distribution, etc.) is a separate decision, not yet made. Note that `ai-gateway/Dockerfile`, `ha-gateway/Dockerfile`, and `discord-bot/Dockerfile` each `COPY` every other service directory (not just their own) because `go.work` lists all five modules as workspace members — Go's workspace-mode module resolution needs every listed directory present in the build context, even ones a given service doesn't otherwise depend on. Adding a new module to `go.work` means adding a matching `COPY` line to the other Dockerfiles too, or their builds break.
|
||||||
|
|||||||
@ -5,6 +5,7 @@ COPY go.work go.work.sum ./
|
|||||||
COPY gen/ ./gen/
|
COPY gen/ ./gen/
|
||||||
COPY ha-gateway/ ./ha-gateway/
|
COPY ha-gateway/ ./ha-gateway/
|
||||||
COPY discord-bot/ ./discord-bot/
|
COPY discord-bot/ ./discord-bot/
|
||||||
|
COPY tts-gateway/ ./tts-gateway/
|
||||||
COPY ai-gateway/ ./ai-gateway/
|
COPY ai-gateway/ ./ai-gateway/
|
||||||
|
|
||||||
WORKDIR /workspace/ai-gateway
|
WORKDIR /workspace/ai-gateway
|
||||||
|
|||||||
@ -5,6 +5,7 @@ COPY go.work go.work.sum ./
|
|||||||
COPY gen/ ./gen/
|
COPY gen/ ./gen/
|
||||||
COPY ai-gateway/ ./ai-gateway/
|
COPY ai-gateway/ ./ai-gateway/
|
||||||
COPY ha-gateway/ ./ha-gateway/
|
COPY ha-gateway/ ./ha-gateway/
|
||||||
|
COPY tts-gateway/ ./tts-gateway/
|
||||||
COPY discord-bot/ ./discord-bot/
|
COPY discord-bot/ ./discord-bot/
|
||||||
|
|
||||||
WORKDIR /workspace/discord-bot
|
WORKDIR /workspace/discord-bot
|
||||||
|
|||||||
@ -4,8 +4,9 @@ WORKDIR /workspace
|
|||||||
COPY go.work go.work.sum ./
|
COPY go.work go.work.sum ./
|
||||||
COPY gen/ ./gen/
|
COPY gen/ ./gen/
|
||||||
COPY ai-gateway/ ./ai-gateway/
|
COPY ai-gateway/ ./ai-gateway/
|
||||||
COPY ha-gateway/ ./ha-gateway/
|
|
||||||
COPY discord-bot/ ./discord-bot/
|
COPY discord-bot/ ./discord-bot/
|
||||||
|
COPY tts-gateway/ ./tts-gateway/
|
||||||
|
COPY ha-gateway/ ./ha-gateway/
|
||||||
|
|
||||||
WORKDIR /workspace/ha-gateway
|
WORKDIR /workspace/ha-gateway
|
||||||
RUN go mod download
|
RUN go mod download
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user