File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed
Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 1919
2020 - name : Push image
2121 run : |
22+ echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io
23+ -u lemon-mint --password-stdin
24+
2225 docker push ghcr.io/lemon-mint/timeserver:latest
2326 docker tag ghcr.io/lemon-mint/timeserver:latest "ghcr.io/lemon-mint/timeserver:${GITHUB_REF#refs/*/}"
2427 docker push "ghcr.io/lemon-mint/timeserver:${GITHUB_REF#refs/*/}"
Original file line number Diff line number Diff line change 1- FROM docker.io/golang:alpine
1+ FROM docker.io/golang:alpine as build
22
33WORKDIR /app
44ADD . /app
5- RUN go build -o /app/main.exe .
5+ RUN CGO_ENABLED=0 go build -v -o /app/main.exe .
66
7+ FROM gcr.io/distroless/static-debian11
8+
9+ COPY --from=build /app/main.exe /
710EXPOSE 8080
8- ENTRYPOINT ["/app/main.exe" ]
11+
12+ CMD ["/main.exe" ]
You can’t perform that action at this time.
0 commit comments