Fix: specify build target
All checks were successful
All checks were successful
This commit is contained in:
@@ -54,13 +54,10 @@ jobs:
|
||||
- run-go-test
|
||||
runs-on: imgbuilder
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
- name: Build binary
|
||||
run: make backend
|
||||
- name: Build and push image
|
||||
uses: https://gitea.konchin.com/action/docker@main
|
||||
with:
|
||||
registry-certificate: ${{ vars.ROOTCA }}
|
||||
username: ${{ secrets.REGISTRY_USERNAME }}
|
||||
password: ${{ secrets.REGISTRY_PASSWORD }}
|
||||
target: build-run
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -62,7 +62,7 @@ services:
|
||||
backend:
|
||||
build:
|
||||
context: .
|
||||
target: testing
|
||||
target: native
|
||||
env_file:
|
||||
- path: ./.env
|
||||
required: false
|
||||
|
||||
Reference in New Issue
Block a user