Skip to content

Commit 2f21232

Browse files
committed
feat: put atest-collector into the image
1 parent ec32ff3 commit 2f21232

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

.github/workflows/release.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
push:
55
tags:
66
- '*'
7+
branches:
8+
- master
79

810
env:
911
REGISTRY: ghcr.io

Dockerfile

+3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ FROM golang:1.18 AS builder
33
WORKDIR /workspace
44
COPY cmd/ cmd/
55
COPY pkg/ pkg/
6+
COPY extensions/ extensions/
67
COPY sample/ sample/
78
COPY go.mod go.mod
89
COPY go.sum go.sum
@@ -12,6 +13,7 @@ COPY LICENSE LICENSE
1213

1314
RUN go mod download
1415
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
1517

1618
FROM ubuntu:23.04
1719

@@ -27,6 +29,7 @@ LABEL "maintainer"="Rick <[email protected]>"
2729
LABEL "Name"="API testing"
2830

2931
COPY --from=builder /workspace/atest /usr/local/bin/atest
32+
COPY --from=builder /workspace/atest /usr/local/bin/atest-collector
3033
COPY --from=builder /workspace/LICENSE /LICENSE
3134
COPY --from=builder /workspace/README.md /README.md
3235

0 commit comments

Comments
 (0)