diff --git a/.gitea/workflows/website.yaml b/.gitea/workflows/website.yaml index 205396b..9479355 100644 --- a/.gitea/workflows/website.yaml +++ b/.gitea/workflows/website.yaml @@ -35,3 +35,4 @@ jobs: with: kubeconfig: "${{ secrets.K8S }}" registry_password: "${{ secrets.PKGRW }}" + dockerfile: website/Dockerfile diff --git a/website/Dockerfile b/website/Dockerfile index 30838d8..7fda515 100644 --- a/website/Dockerfile +++ b/website/Dockerfile @@ -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