CI/CD auto deploy website #4

Open
ange wants to merge 19 commits from websitedeploy into dev
2 changed files with 2 additions and 1 deletions
Showing only changes of commit 53df4ee34b - Show all commits

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