Fix: dockerfile target for another time
Some checks failed
Go test / run-go-vet (push) Successful in 5s
Go test / check-swagger-up-to-date (push) Successful in 9s
Go test / run-go-test (push) Successful in 25s
Go test / cleanup-go-test (push) Successful in 12s
Go test / release-image (push) Failing after 57s

This commit is contained in:
2025-12-09 02:18:25 +08:00
parent d28f3324b3
commit 09f8224b9b
3 changed files with 4 additions and 4 deletions

View File

@@ -64,4 +64,4 @@ jobs:
registry-certificate: ${{ vars.ROOTCA }}
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}
target: run
target: native

View File

@@ -4,7 +4,7 @@ WORKDIR /work
COPY . .
RUN make backend
FROM docker.io/library/debian:13-slim AS run
FROM docker.io/library/debian:13-slim AS build-run
COPY --from=build /work/backend /work/backend
WORKDIR /work
@@ -12,7 +12,7 @@ WORKDIR /work
ENTRYPOINT ["/work/backend"]
CMD ["serve"]
FROM docker.io/library/debian:13-slim AS testing
FROM docker.io/library/debian:13-slim AS native
COPY backend /work/backend
WORKDIR /work

View File

@@ -62,7 +62,7 @@ services:
backend:
build:
context: .
target: testing
target: native
env_file:
- path: ./.env
required: false