File tree Expand file tree Collapse file tree 2 files changed +15
-9
lines changed
Expand file tree Collapse file tree 2 files changed +15
-9
lines changed Original file line number Diff line number Diff line change 5353 uses : actions/checkout@v5
5454 with :
5555 fetch-depth : 0
56+ - name : Set up Docker Buildx
57+ uses : docker/setup-buildx-action@v3
5658 - name : Build Docker image
5759 uses : docker/build-push-action@v6
5860 with :
Original file line number Diff line number Diff line change @@ -8,15 +8,19 @@ ARG USE_GORELEASER_ARTIFACTS=0
88WORKDIR /usr/local/src/goproxy
99COPY . .
1010
11- RUN set -eux; \
12- mkdir bin; \
13- if [ "${USE_GORELEASER_ARTIFACTS}" -eq 1 ]; then \
14- cp "${TARGETPLATFORM}/bin/goproxy" bin/; \
15- else \
16- apk add --no-cache git; \
17- go mod download; \
18- CGO_ENABLED=0 go build -trimpath -ldflags "-s -w" -o bin/ ./cmd/goproxy; \
19- fi
11+ RUN << EOF
12+ set -eux
13+
14+ mkdir -p bin
15+
16+ if [ "${USE_GORELEASER_ARTIFACTS}" -eq 1 ]; then
17+ cp "${TARGETPLATFORM}/bin/goproxy" bin/
18+ else
19+ apk add --no-cache git
20+ go mod download
21+ CGO_ENABLED=0 go build -trimpath -ldflags "-s -w" -o bin/ ./cmd/goproxy
22+ fi
23+ EOF
2024
2125FROM ${GO_BASE_IMAGE}
2226
You can’t perform that action at this time.
0 commit comments