fix: dockerfile path
Some checks failed
/ mirror (push) Successful in 4s
/ deploy (push) Failing after 4s

This commit is contained in:
ange 2024-11-28 03:39:23 +00:00
parent c7e348c190
commit 0fc0740bbb
Signed by: ange
GPG Key ID: 9E0C4157BB7BEB1D
2 changed files with 2 additions and 1 deletions

View File

@ -35,3 +35,4 @@ jobs:
with:
kubeconfig: "${{ secrets.K8S }}"
registry_password: "${{ secrets.PKGRW }}"
dockerfile: website/Dockerfile

View File

@ -4,7 +4,7 @@ FROM "docker.io/golang:$VER" as build
WORKDIR /build/
ARG VER
COPY main.go .
RUN printf "module yw5n\ngo $VER" > go.mod && CGO_ENABLED=0 go build -o /app
RUN printf "module main\ngo $VER" > go.mod && CGO_ENABLED=0 go build -o /app
FROM scratch
COPY --from=build /app /app