Skip to content

Commit

Permalink
chore: Update golang in CI to 1.20
Browse files Browse the repository at this point in the history
Updated ci-builder container and GitHub actions
to use golang 1.20.

This commit needs to be merged before we can move
other parts of code to 1.20.

Signed-off-by: Andrej Krejcir <[email protected]>
  • Loading branch information
akrejcir committed Dec 5, 2023
1 parent 9accec6 commit dc0aa95
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ jobs:
validate_metrics_docs:
runs-on: ubuntu-latest
steps:
- name: Install Golang 1.19
- name: Install Golang 1.20
uses: actions/setup-go@v2
with:
go-version: '1.19'
go-version: '1.20'
- name: Checkout code
uses: actions/checkout@v3
- name: Generate metrics docs
Expand All @@ -22,10 +22,10 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Install Golang 1.19
- name: Install Golang 1.20
uses: actions/setup-go@v2
with:
go-version: '1.19'
go-version: '1.20'

- name: Checkout code
uses: actions/checkout@v2
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ jobs:
name: Upload Release Asset
runs-on: ubuntu-latest
steps:
- name: Install Golang 1.19
- name: Install Golang 1.20
uses: actions/setup-go@v2
with:
go-version: '1.19'
go-version: '1.20'

- name: Checkout code
uses: actions/checkout@v2
Expand All @@ -32,7 +32,7 @@ jobs:
make release
- name: Upload CRD Asset
id: upload-crd-asset
id: upload-crd-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.ACTIONS_TOKEN }}
Expand All @@ -43,7 +43,7 @@ jobs:
asset_content_type: text/plain

- name: Upload CSV Asset
id: upload-csv-asset
id: upload-csv-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.ACTIONS_TOKEN }}
Expand All @@ -54,7 +54,7 @@ jobs:
asset_content_type: text/plain

- name: Upload Operator Asset
id: upload-operator-asset
id: upload-operator-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.ACTIONS_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion ci-builder/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This Dockerfile is used in openshift CI
FROM quay.io/fedora/fedora:37

RUN curl -L https://go.dev/dl/go1.19.2.linux-amd64.tar.gz | tar -C /usr/local -xzf -
RUN curl -L https://go.dev/dl/go1.20.11.linux-amd64.tar.gz | tar -C /usr/local -xzf -
ENV PATH=$PATH:/usr/local/go/bin

# Install dependencies and tools
Expand Down

0 comments on commit dc0aa95

Please sign in to comment.