File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 21
21
- name : Checkout code
22
22
uses : actions/checkout@v3
23
23
- name : Build
24
- run : go build -v .
24
+ run : go build -v -o /dev/null .
25
25
- name : Test
26
26
run : go test -v ./...
27
27
# ================
67
67
uses : docker/metadata-action@v4
68
68
with :
69
69
images : jpillora/chisel
70
- tag-latest : true
71
70
tags : |
72
71
type=semver,pattern={{version}}
73
72
type=semver,pattern={{major}}.{{minor}}
Original file line number Diff line number Diff line change @@ -9,8 +9,8 @@ RUN go build \
9
9
-ldflags "-X github.com/jpillora/chisel/share.BuildVersion=$(git describe --abbrev=0 --tags)" \
10
10
-o chisel
11
11
# run stage
12
- FROM gcr.io/distroless/static-debian11
12
+ FROM scratch
13
+ COPY --from=alpine:latest /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
13
14
WORKDIR /app
14
- CMD ["/app" ]
15
15
COPY --from=build /src/chisel /app/chisel
16
16
ENTRYPOINT ["/app/chisel" ]
You can’t perform that action at this time.
0 commit comments