Compare commits
4 Commits
Author | SHA1 | Date |
---|---|---|
lovezsh | aa545a2a9b | |
lovezsh | bfd7729e09 | |
lovezsh | b8455bb8c9 | |
lovezsh | 0406e45ff7 |
|
@ -10,7 +10,7 @@ jobs:
|
||||||
uses: http://${{secrets.ACTION_ACCESS_GIT}}@git.lovezsh.com/actions/checkout@v4
|
uses: http://${{secrets.ACTION_ACCESS_GIT}}@git.lovezsh.com/actions/checkout@v4
|
||||||
|
|
||||||
- name: 设置go环境
|
- name: 设置go环境
|
||||||
uses: https://github.com/actions/setup-go@v5
|
uses: https://${{secrets.ACTION_ACCESS_GIT}}@git.lovezsh.com/actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
go-version: "1.22.4"
|
go-version: "1.22.4"
|
||||||
|
|
||||||
|
|
|
@ -1,2 +1,3 @@
|
||||||
bin
|
bin
|
||||||
.swap
|
.swap
|
||||||
|
.vscode
|
|
@ -0,0 +1,11 @@
|
||||||
|
FROM golang:1.22.4-alpine3.20 as builder
|
||||||
|
|
||||||
|
WORKDIR /builder
|
||||||
|
COPY . .
|
||||||
|
RUN GOPROXY=https://goproxy.cn CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o nip cmd/main.go
|
||||||
|
|
||||||
|
|
||||||
|
FROM alpine:3.20
|
||||||
|
WORKDIR /app
|
||||||
|
COPY --from=builder /builder/nip .
|
||||||
|
ENTRYPOINT [ "/app/nip" ]
|
Loading…
Reference in New Issue