Skip to content

Commit

Permalink
[MAIN] Move to Golang version 1.21 (#546)
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 Nov 28, 2023
1 parent 1d7c14f commit 55cc658
Show file tree
Hide file tree
Showing 13 changed files with 19 additions and 17 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
4 changes: 2 additions & 2 deletions openshift/performance/patches/perf.patch
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ 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
Expand All @@ -53,7 +53,7 @@ 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
Expand Down

0 comments on commit 55cc658

Please sign in to comment.