Bump go to v1.21.6 and set a single source of truth (#10926)

This commit is contained in:
Ricardo Katz 2024-01-27 22:15:14 -03:00 committed by GitHub
parent 02e6ebc95a
commit 5acc4230ee
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
24 changed files with 166 additions and 50 deletions

View file

@ -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

View file

@ -1,6 +1,6 @@
module github.com/jet/kube-webhook-certgen
go 1.21.5
go 1.21
require (
github.com/onrik/logrus v0.9.0