File tree 2 files changed +5
-0
lines changed
2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change 4
4
push :
5
5
tags :
6
6
- ' *'
7
+ branches :
8
+ - master
7
9
8
10
env :
9
11
REGISTRY : ghcr.io
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ FROM golang:1.18 AS builder
3
3
WORKDIR /workspace
4
4
COPY cmd/ cmd/
5
5
COPY pkg/ pkg/
6
+ COPY extensions/ extensions/
6
7
COPY sample/ sample/
7
8
COPY go.mod go.mod
8
9
COPY go.sum go.sum
@@ -12,6 +13,7 @@ COPY LICENSE LICENSE
12
13
13
14
RUN go mod download
14
15
RUN CGO_ENABLE=0 go build -ldflags "-w -s" -o atest .
16
+ RUN CGO_ENABLE=0 go build -ldflags "-w -s" -o atest-collector extensions/collector/main.go
15
17
16
18
FROM ubuntu:23.04
17
19
27
29
LABEL "Name" ="API testing"
28
30
29
31
COPY --from=builder /workspace/atest /usr/local/bin/atest
32
+ COPY --from=builder /workspace/atest /usr/local/bin/atest-collector
30
33
COPY --from=builder /workspace/LICENSE /LICENSE
31
34
COPY --from=builder /workspace/README.md /README.md
32
35
You can’t perform that action at this time.
0 commit comments