From c6cc894c4ae3a64d78a3adf1c8c31bfa31c41109 Mon Sep 17 00:00:00 2001 From: Siddhesh Ghadi Date: Wed, 6 Nov 2024 18:45:07 +0530 Subject: [PATCH] Update golang to 1.22 Signed-off-by: Siddhesh Ghadi --- .ci-operator.yaml | 2 +- .github/workflows/go.yml | 2 +- Dockerfile | 2 +- go.mod | 2 +- openshift-ci/build-root/Dockerfile | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.ci-operator.yaml b/.ci-operator.yaml index af03e31..a547cd5 100644 --- a/.ci-operator.yaml +++ b/.ci-operator.yaml @@ -1,4 +1,4 @@ build_root_image: name: release namespace: openshift - tag: golang-1.21 \ No newline at end of file + tag: golang-1.22 \ No newline at end of file diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index c1695ca..6489f07 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -16,7 +16,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v2 with: - go-version: '1.21' + go-version: '1.22' - name: Build run: go build -v ./... diff --git a/Dockerfile b/Dockerfile index d42bc80..cc5f946 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.21 AS build +FROM golang:1.22 AS build WORKDIR /go/src COPY . /go/src RUN GIT_COMMIT=$(git rev-parse HEAD) && \ diff --git a/go.mod b/go.mod index 82295a9..4279bf8 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/redhat-developer/gitops-backend -go 1.21 +go 1.22 require ( github.com/argoproj/argo-cd v0.8.1-0.20210326223336-719d6a9c252e diff --git a/openshift-ci/build-root/Dockerfile b/openshift-ci/build-root/Dockerfile index 422affc..709272c 100644 --- a/openshift-ci/build-root/Dockerfile +++ b/openshift-ci/build-root/Dockerfile @@ -1,3 +1,3 @@ # Dockerfile to bootstrap build and test in openshift-ci -FROM registry.ci.openshift.org/openshift/release:golang-1.21 +FROM registry.ci.openshift.org/openshift/release:golang-1.22