Skip to content

Commit

Permalink
cicd: update go versions
Browse files Browse the repository at this point in the history
Claircore now requires 1.20, so update all the CI chores to use it.

Signed-off-by: Hank Donnay <hdonnay@redhat.com>
  • Loading branch information
hdonnay committed Apr 5, 2023
1 parent 5faf0fc commit 30a9869
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/script/nightly-module.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/sh
set -e
: ${CLAIRCORE_BRANCH:=main}
: ${GO_VERSION:=1.18}
: ${GO_VERSION:=1.20}
test "${#GO_VERSION}" -gt 4 && GO_VERSION=${GO_VERSION%.*}

cd $(git rev-parse --show-toplevel)
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/config-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
steps:
- id: config
run: |
echo 'go_versions=["1.18", "1.19"]' >> "$GITHUB_OUTPUT"
echo 'go_versions=["1.20", "1.19"]' >> "$GITHUB_OUTPUT"
commit-check:
name: Commit Check
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cut-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: 'ubuntu-latest'
strategy:
matrix:
image: ['quay.io/projectquay/golang:1.18']
image: ['quay.io/projectquay/golang:1.20']
container:
image: ${{ matrix.image }}
outputs:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
steps:
- id: config
run: |
echo 'go_versions=["1.18", "1.19", "1.20"]' >> "$GITHUB_OUTPUT"
echo 'go_versions=["1.20","1.19"]' >> "$GITHUB_OUTPUT"
commit-check:
name: Commit Check
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
# nicer workflow inputs so that the cron trigger works.
run: |
br=$(test -n "${{github.event.inputs.branch}}" && echo "${{github.event.inputs.branch}}" || echo main)
gv=$(test -n "${{github.event.inputs.go_version}}" && echo "${{github.event.inputs.go_version}}" || echo 1.18)
gv=$(test -n "${{github.event.inputs.go_version}}" && echo "${{github.event.inputs.go_version}}" || echo 1.20)
: "${repo:=$GITHUB_REPOSITORY}"
test "${repo%%/*}" = quay && repo="projectquay/${repo##*/}" ||:
cat <<. >>$GITHUB_OUTPUT
Expand Down

0 comments on commit 30a9869

Please sign in to comment.