Bump go to v1.21.6 and set a single source of truth (#10926)
This commit is contained in:
parent
02e6ebc95a
commit
5acc4230ee
24 changed files with 166 additions and 50 deletions
|
|
@ -12,10 +12,14 @@
|
|||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
FROM --platform=$BUILDPLATFORM golang:1.21.5 as builder
|
||||
ARG GOLANG_VERSION
|
||||
|
||||
FROM --platform=$BUILDPLATFORM golang:${GOLANG_VERSION} as builder
|
||||
|
||||
ARG BUILDPLATFORM
|
||||
ARG TARGETARCH
|
||||
|
||||
|
||||
WORKDIR /workspace
|
||||
COPY . .
|
||||
RUN CGO_ENABLED=0 GOOS=linux GOARCH=${TARGETARCH} go build -a -o kube-webhook-certgen main.go
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue