We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 42a0639 commit 7900156Copy full SHA for 7900156
.github/workflows/build.yaml
@@ -15,7 +15,7 @@ jobs:
15
Build:
16
runs-on: ubuntu-22.04
17
steps:
18
- - uses: actions/checkout@v2
+ - uses: actions/checkout@v4
19
- name: Docker meta for KubeSphere
20
id: meta
21
if: github.repository_owner == 'kubesphere'
Dockerfile
@@ -1,14 +1,15 @@
1
-FROM golang:1.11-alpine as builder
+FROM golang:1.23 as builder
2
3
WORKDIR /go/src/github.com/kubesphere/s2irun
4
COPY cmd/ cmd/
5
COPY pkg/ pkg/
6
-COPY vendor/ vendor/
+COPY go.mod go.mod
7
+COPY go.sum go.sum
8
9
# Build
-RUN CGO_ENABLED=0 GOOS=linux go build -a -o builder github.com/kubesphere/s2irun/cmd
10
+RUN CGO_ENABLED=0 GO111MODULE=on GOOS=linux go build -a -o builder github.com/kubesphere/s2irun/cmd
11
-FROM alpine:3.11
12
+FROM alpine:3.21
13
14
WORKDIR /root/
0 commit comments