fix: dockerfile path
This commit is contained in:
parent
c7e348c190
commit
0fc0740bbb
@ -35,3 +35,4 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
kubeconfig: "${{ secrets.K8S }}"
|
kubeconfig: "${{ secrets.K8S }}"
|
||||||
registry_password: "${{ secrets.PKGRW }}"
|
registry_password: "${{ secrets.PKGRW }}"
|
||||||
|
dockerfile: website/Dockerfile
|
||||||
|
@ -4,7 +4,7 @@ FROM "docker.io/golang:$VER" as build
|
|||||||
WORKDIR /build/
|
WORKDIR /build/
|
||||||
ARG VER
|
ARG VER
|
||||||
COPY main.go .
|
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
|
FROM scratch
|
||||||
COPY --from=build /app /app
|
COPY --from=build /app /app
|
||||||
|
Loading…
Reference in New Issue
Block a user