File tree 4 files changed +32
-18
lines changed
4 files changed +32
-18
lines changed Original file line number Diff line number Diff line change @@ -2,9 +2,7 @@ name: "Build Pipeline (Docker)"
2
2
3
3
on :
4
4
push :
5
- branches :
6
- - jesse/pipeline-deploy
7
- - main
5
+ branches : [main]
8
6
9
7
env :
10
8
IMAGE_NAME : " ${{ vars.GAR_LOCATION }}-docker.pkg.dev/${{ vars.PROJECT_ID }}/${{ secrets.DOCKER_REPOSITORY }}/polygon-cli"
55
53
# run: |-
56
54
# export CLOUDSDK_CORE_DISABLE_PROMPTS=1
57
55
# gcloud components install beta --quiet
58
-
56
+
59
57
# DIGEST=$(gcloud container images describe ${{ env.IMAGE_NAME }}:${{ github.sha }} --format='get(image_summary.digest)')
60
-
58
+
61
59
# gcloud beta container binauthz attestations sign-and-create \
62
60
# --artifact-url="${{ env.IMAGE_NAME }}@${DIGEST}" \
63
61
# --attestor="${{ env.ATTESTOR }}" \
Original file line number Diff line number Diff line change @@ -2,9 +2,7 @@ name: "Build Pipeline (Debian)"
2
2
3
3
on :
4
4
push :
5
- branches :
6
- - jesse/pipeline-deploy
7
- - main
5
+ branches : [main]
8
6
9
7
jobs :
10
8
build-pipeline-apt :
Original file line number Diff line number Diff line change 1
1
name : Security Build
2
2
3
3
on :
4
+ pull_request :
5
+ merge_group :
4
6
push :
5
- branches :
6
- - main
7
- workflow_dispatch : {}
7
+ branches : [main]
8
8
9
9
jobs :
10
10
sonarqube :
Original file line number Diff line number Diff line change 1
- FROM golang:1.21 as builder
2
- WORKDIR /go/src/app
1
+ FROM golang:1.21 AS builder
2
+ WORKDIR /workspace
3
3
COPY go.mod go.sum ./
4
4
RUN go mod download
5
- COPY . .
6
- RUN CGO_ENABLED=0 make build
7
5
8
- FROM scratch
6
+ COPY abi/ abi/
7
+ COPY bindings/ bindings/
8
+ COPY cmd/ cmd/
9
+ COPY dashboard/ dashboard/
10
+ COPY gethkeystore/ gethkeystore/
11
+ COPY hdwallet/ hdwallet/
12
+ COPY metrics/ metrics/
13
+ COPY p2p/ p2p/
14
+ COPY proto/ proto/
15
+ COPY rpctypes/ rpctypes/
16
+ COPY util/ util/
17
+ COPY main.go ./
18
+ RUN CGO_ENABLED=0 go build -o polycli main.go
19
+
20
+ # Use distroless as minimal base image to package the manager binary
21
+ # Refer to https://github.com/GoogleContainerTools/distroless for more details
22
+ FROM gcr.io/distroless/static:nonroot
9
23
WORKDIR /
10
24
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
11
- COPY --from=builder /go/src/app/out/polycli /usr/bin/polycli
25
+ COPY --from=builder /workspace/polycli /usr/bin/polycli
26
+ USER 65532:65532
12
27
ENTRYPOINT ["polycli" ]
13
- CMD ["--help" ]
28
+ CMD ["--help" ]
29
+
30
+ # How to test this image?
31
+ # https://github.com/maticnetwork/polygon-cli/pull/189#discussion_r1464486344
You can’t perform that action at this time.
0 commit comments