From d06fab59ccb61a502dbd647b283d439862280e2a Mon Sep 17 00:00:00 2001 From: Daniel Jiang Date: Thu, 23 May 2024 18:36:29 +0800 Subject: [PATCH] Pin the version of Golang and base image Signed-off-by: Daniel Jiang --- .github/workflows/crds-verify-kind.yaml | 2 +- .github/workflows/e2e-test-kind.yaml | 4 ++-- .github/workflows/pr-ci-check.yml | 2 +- .github/workflows/push.yml | 2 +- Dockerfile | 6 +++--- Tiltfile | 2 +- go.mod | 2 +- hack/build-image/Dockerfile | 2 +- 8 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/crds-verify-kind.yaml b/.github/workflows/crds-verify-kind.yaml index 8ababc60e4..f681c07bb5 100644 --- a/.github/workflows/crds-verify-kind.yaml +++ b/.github/workflows/crds-verify-kind.yaml @@ -14,7 +14,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version: '1.22' + go-version: '1.22.2' id: go # Look for a CLI that's made for this PR - name: Fetch built CLI diff --git a/.github/workflows/e2e-test-kind.yaml b/.github/workflows/e2e-test-kind.yaml index 57d4998237..72f10af2ed 100644 --- a/.github/workflows/e2e-test-kind.yaml +++ b/.github/workflows/e2e-test-kind.yaml @@ -14,7 +14,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version: '1.22' + go-version: '1.22.2' id: go # Look for a CLI that's made for this PR - name: Fetch built CLI @@ -82,7 +82,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version: '1.22' + go-version: '1.22.2' id: go - name: Check out the code uses: actions/checkout@v4 diff --git a/.github/workflows/pr-ci-check.yml b/.github/workflows/pr-ci-check.yml index 1da24a85dd..f23a331035 100644 --- a/.github/workflows/pr-ci-check.yml +++ b/.github/workflows/pr-ci-check.yml @@ -10,7 +10,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version: '1.22' + go-version: '1.22.2' id: go - name: Check out the code uses: actions/checkout@v4 diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 51ea81baca..45272c2e76 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -18,7 +18,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version: '1.22' + go-version: '1.22.2' id: go - uses: actions/checkout@v4 diff --git a/Dockerfile b/Dockerfile index 0d461642ea..4ec7ab6379 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,7 +13,7 @@ # limitations under the License. # Velero binary build section -FROM --platform=$BUILDPLATFORM golang:1.22-bookworm as velero-builder +FROM --platform=$BUILDPLATFORM golang:1.22.2-bookworm as velero-builder ARG GOPROXY ARG BIN @@ -47,7 +47,7 @@ RUN mkdir -p /output/usr/bin && \ go clean -modcache -cache # Restic binary build section -FROM --platform=$BUILDPLATFORM golang:1.22-bookworm as restic-builder +FROM --platform=$BUILDPLATFORM golang:1.22.2-bookworm as restic-builder ARG BIN ARG TARGETOS @@ -70,7 +70,7 @@ RUN mkdir -p /output/usr/bin && \ go clean -modcache -cache # Velero image packing section -FROM paketobuildpacks/run-jammy-tiny:latest +FROM paketobuildpacks/run-jammy-tiny:0.2.38 LABEL maintainer="Xun Jiang " diff --git a/Tiltfile b/Tiltfile index 994f27717a..fe613eef25 100644 --- a/Tiltfile +++ b/Tiltfile @@ -52,7 +52,7 @@ git_sha = str(local("git rev-parse HEAD", quiet = True, echo_off = True)).strip( tilt_helper_dockerfile_header = """ # Tilt image -FROM golang:1.22 as tilt-helper +FROM golang:1.22.2 as tilt-helper # Support live reloading with Tilt RUN wget --output-document /restart.sh --quiet https://raw.githubusercontent.com/windmilleng/rerun-process-wrapper/master/restart.sh && \ diff --git a/go.mod b/go.mod index 4113c1e3bc..e291202a26 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/vmware-tanzu/velero -go 1.22.0 +go 1.22.2 require ( cloud.google.com/go/storage v1.40.0 diff --git a/hack/build-image/Dockerfile b/hack/build-image/Dockerfile index e2d966f73a..0a9f5c2ac7 100644 --- a/hack/build-image/Dockerfile +++ b/hack/build-image/Dockerfile @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -FROM --platform=$TARGETPLATFORM golang:1.22-bookworm +FROM --platform=$TARGETPLATFORM golang:1.22.2-bookworm ARG GOPROXY