mirror of
https://github.com/open-cluster-management-io/ocm.git
synced 2026-08-19 04:06:35 +00:00
* chore: upgrade to go 1.26 Upgrades Go version from 1.25 to 1.26. Changes: - go.mod — go directive updated to 1.26.0 - .github/workflows/*.yml — GO_VERSION updated to 1.26 (5 workflows) - build/Dockerfile.* — base image updated to golang:1.26-bookworm (5 Dockerfiles) - pkg/placement/controllers/scheduling/scheduling_controller.go — fix pre-existing printf format mismatch (%q -> %d for int args) surfaced by stricter Go 1.26 linter Relates to: https://github.com/open-cluster-management-io/ocm/issues/1555 Signed-off-by: Tesshu Flower <tflower@redhat.com> * fix: pin engineerd/setup-kind to working commit SHA Pin engineerd/setup-kind to commit SHA ecfad61750951586a9ef973db567df1d28671bdc which is the tip of the v0.6.2 branch and includes the required dist/ build artifact. The v0.6.2 tag currently resolves to a different commit that is missing dist/main/index.js, causing e2e CI to fail. Signed-off-by: Tesshu Flower <tflower@redhat.com> --------- Signed-off-by: Tesshu Flower <tflower@redhat.com>
19 lines
452 B
Docker
19 lines
452 B
Docker
FROM golang:1.26-bookworm AS builder
|
|
ARG OS=linux
|
|
ARG ARCH=amd64
|
|
WORKDIR /go/src/open-cluster-management.io/ocm
|
|
COPY . .
|
|
ENV GO_PACKAGE open-cluster-management.io/ocm
|
|
|
|
RUN GOOS=${OS} \
|
|
GOARCH=${ARCH} \
|
|
GO_BUILD_PACKAGES=./cmd/placement \
|
|
make build --warn-undefined-variables
|
|
|
|
FROM registry.access.redhat.com/ubi9/ubi-micro:latest
|
|
ENV USER_UID=10001
|
|
|
|
COPY --from=builder /go/src/open-cluster-management.io/ocm/placement /
|
|
|
|
USER ${USER_UID}
|