Skip to content

Commit

Permalink
[RELEASE-1.11] Move to Golang version 1.21 (#546) (#592)
Browse files Browse the repository at this point in the history
* move to 1.21

* fix actions

* update perf tests patch

* fix multi-arch
  • Loading branch information
skonto authored Jan 18, 2024
1 parent d1ff617 commit f2b8975
Show file tree
Hide file tree
Showing 13 changed files with 21 additions and 19 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/multiarch-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@ jobs:
multiarch-build:
uses: openshift-knative/hack/.github/workflows/multiarch-build.yaml@main
secrets: inherit
with:
goversion: '1.21.x'
6 changes: 3 additions & 3 deletions .github/workflows/validate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Setup Golang
uses: actions/setup-go@v4
with:
go-version: 1.19.x
go-version: 1.21.x

- name: Checkout
uses: actions/checkout@v3
Expand Down Expand Up @@ -48,10 +48,10 @@ jobs:
env:
GOPATH: ${{ github.workspace }}
steps:
- name: Set up Go 1.19.x
- name: Set up Go 1.21.x
uses: actions/setup-go@v4
with:
go-version: 1.19.x
go-version: 1.21.x

- name: Checkout
uses: actions/checkout@v2
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/vulncheck.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ jobs:
env:
GOPATH: ${{ github.workspace }}
steps:
- name: Set up Go 1.18.x
uses: actions/setup-go@v2
- name: Set up Go 1.21.x
uses: actions/setup-go@v4
with:
go-version: 1.18.x
go-version: 1.21.x

- name: Checkout
uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion openshift/ci-operator/Dockerfile.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Do not edit! This file was generated via Makefile
FROM registry.ci.openshift.org/openshift/release:golang-1.19 as builder
FROM registry.ci.openshift.org/openshift/release:golang-1.21 as builder

COPY . .
RUN make install test-install
Expand Down
2 changes: 1 addition & 1 deletion openshift/ci-operator/Dockerfile_with_kodata.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Do not edit! This file was generated via Makefile
FROM registry.ci.openshift.org/openshift/release:golang-1.19 as builder
FROM registry.ci.openshift.org/openshift/release:golang-1.21 as builder

COPY . .
RUN make install test-install
Expand Down
2 changes: 1 addition & 1 deletion openshift/ci-operator/build-image/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Dockerfile to bootstrap build and test in openshift-ci

FROM registry.ci.openshift.org/openshift/release:golang-1.19
FROM registry.ci.openshift.org/openshift/release:golang-1.21

# Add kubernetes repository
ADD openshift/ci-operator/build-image/kubernetes.repo /etc/yum.repos.d/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Do not edit! This file was generated via Makefile
FROM registry.ci.openshift.org/openshift/release:golang-1.19 as builder
FROM registry.ci.openshift.org/openshift/release:golang-1.21 as builder

COPY . .

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Do not edit! This file was generated via Makefile
FROM registry.ci.openshift.org/openshift/release:golang-1.19 as builder
FROM registry.ci.openshift.org/openshift/release:golang-1.21 as builder

COPY . .

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Do not edit! This file was generated via Makefile
FROM registry.ci.openshift.org/openshift/release:golang-1.19 as builder
FROM registry.ci.openshift.org/openshift/release:golang-1.21 as builder

COPY . .

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Do not edit! This file was generated via Makefile
FROM registry.ci.openshift.org/openshift/release:golang-1.19 as builder
FROM registry.ci.openshift.org/openshift/release:golang-1.21 as builder

COPY . .

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Do not edit! This file was generated via Makefile
FROM registry.ci.openshift.org/openshift/release:golang-1.19 as builder
FROM registry.ci.openshift.org/openshift/release:golang-1.21 as builder

COPY . .

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Do not edit! This file was generated via Makefile
FROM registry.ci.openshift.org/openshift/release:golang-1.19 as builder
FROM registry.ci.openshift.org/openshift/release:golang-1.21 as builder

COPY . .

Expand Down
8 changes: 4 additions & 4 deletions openshift/performance/patches/perf.patch
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ index 32b94bfb1..ce192d43d 100644
--- a/openshift/ci-operator/Dockerfile.in
+++ b/openshift/ci-operator/Dockerfile.in
@@ -2,7 +2,7 @@
FROM registry.ci.openshift.org/openshift/release:golang-1.19 as builder
FROM registry.ci.openshift.org/openshift/release:golang-1.21 as builder

COPY . .
-RUN make install test-install
+RUN make install test-install perf-install
Expand All @@ -67,8 +67,8 @@ index 00de72095..0422ce541 100644
--- a/openshift/ci-operator/Dockerfile_with_kodata.in
+++ b/openshift/ci-operator/Dockerfile_with_kodata.in
@@ -2,7 +2,7 @@
FROM registry.ci.openshift.org/openshift/release:golang-1.19 as builder
FROM registry.ci.openshift.org/openshift/release:golang-1.21 as builder

COPY . .
-RUN make install test-install
+RUN make install test-install perf-install
Expand Down

0 comments on commit f2b8975

Please sign in to comment.