File tree Expand file tree Collapse file tree 2 files changed +17
-6
lines changed
Expand file tree Collapse file tree 2 files changed +17
-6
lines changed Original file line number Diff line number Diff line change @@ -20,11 +20,11 @@ jobs:
20202121 id : checkTag
2222 with :
23- tag : spectro- v${{ github.event.inputs.release_version }}
23+ tag : v${{ github.event.inputs.release_version }}-spectro
2424 -
2525 if : ${{ steps.checkTag.outputs.exists == 'true' }}
2626 run : |
27- echo "Tag already exists for spectro- v${{ github.event.inputs.release_version }}..."
27+ echo "Tag already exists for v${{ github.event.inputs.release_version }}-spectro ..."
2828 exit 1
2929 -
3030 uses : actions/checkout@v3
6060 env :
6161 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
6262 with :
63- tag_name : spectro- v${{ github.event.inputs.release_version }}
64- release_name : Release spectro- v${{ github.event.inputs.release_version }}
63+ tag_name : v${{ github.event.inputs.release_version }}-spectro
64+ release_name : Release v${{ github.event.inputs.release_version }}-spectro
6565 body : |
66- Release version ${{ github.event.inputs.release_version }}
66+ Release version v ${{ github.event.inputs.release_version }}-spectro
6767 draft : false
6868 prerelease : false
Original file line number Diff line number Diff line change 11# Build the manager binary
2- FROM golang:1.19.8 as builder
2+ FROM golang:1.19.10-alpine3.18 as builder
33
44# FIPS
55ARG CRYPTO_LIB
66ENV GOEXPERIMENT=${CRYPTO_LIB:+boringcrypto}
77
88WORKDIR /workspace
9+ RUN apk update
10+ RUN apk add git gcc g++ curl
11+
912# Copy the Go Modules manifests
1013COPY go.mod go.mod
1114COPY go.sum go.sum
@@ -19,6 +22,14 @@ COPY . .
1922# Build
2023RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GO111MODULE=on go build -ldflags "${LDFLAGS} -extldflags '-static'" -a -o manager main.go
2124
25+ RUN if [ ${CRYPTO_LIB} ]; \
26+ then \
27+ CGO_ENABLED=1 GOOS=linux GOARCH=amd64 GO111MODULE=on go build -ldflags "${LDFLAGS} -linkmode=external -extldflags '-static'" -a -o manager main.go ;\
28+ else \
29+ CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GO111MODULE=on go build -ldflags "${LDFLAGS} -extldflags '-static'" -a -o manager main.go ;\
30+ fi
31+
32+
2233# Use distroless as minimal base image to package the manager binary
2334# Refer to https://github.com/GoogleContainerTools/distroless for more details
2435# FROM gcr.io/distroless/static:latest
You can’t perform that action at this time.
0 commit comments