Skip to content

Commit

Permalink
Merge pull request #16619 from hakman/automated-cherry-pick-of-#16550-#…
Browse files Browse the repository at this point in the history
…16618-upstream-release-1.29

Automated cherry pick of #16550: tests: use version from go.mod in github actions
#16618: Update Go to v1.21.4
  • Loading branch information
k8s-ci-robot authored Jun 15, 2024
2 parents 53f1070 + 74b9006 commit fae4122
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 31 deletions.
40 changes: 20 additions & 20 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ jobs:
build-linux-amd64:
runs-on: ubuntu-20.04
steps:
- name: Set up go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
- uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b
with:
go-version: '1.22.3'
path: ${{ env.GOPATH }}/src/k8s.io/kops

- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- name: Set up go
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7
with:
path: ${{ env.GOPATH }}/src/k8s.io/kops
go-version-file: '${{ env.GOPATH }}/src/k8s.io/kops/go.mod'

- name: make all examples test
working-directory: ${{ env.GOPATH }}/src/k8s.io/kops
Expand All @@ -33,14 +33,14 @@ jobs:
build-macos-amd64:
runs-on: macos-latest
steps:
- name: Set up go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
- uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b
with:
go-version: '1.22.3'
path: ${{ env.GOPATH }}/src/k8s.io/kops

- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- name: Set up go
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7
with:
path: ${{ env.GOPATH }}/src/k8s.io/kops
go-version-file: '${{ env.GOPATH }}/src/k8s.io/kops/go.mod'

- name: make kops examples test
working-directory: ${{ env.GOPATH }}/src/k8s.io/kops
Expand All @@ -50,14 +50,14 @@ jobs:
build-windows-amd64:
runs-on: windows-2019
steps:
- name: Set up go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
- uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b
with:
go-version: '1.22.3'
path: ${{ env.GOPATH }}/src/k8s.io/kops

- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- name: Set up go
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7
with:
path: ${{ env.GOPATH }}/src/k8s.io/kops
go-version-file: '${{ env.GOPATH }}/src/k8s.io/kops/go.mod'

- name: make kops examples test
working-directory: ${{ env.GOPATH }}/src/k8s.io/kops
Expand All @@ -67,14 +67,14 @@ jobs:
verify:
runs-on: ubuntu-20.04
steps:
- name: Set up go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
- uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b
with:
go-version: '1.22.3'
path: ${{ env.GOPATH }}/src/k8s.io/kops

- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- name: Set up go
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7
with:
path: ${{ env.GOPATH }}/src/k8s.io/kops
go-version-file: '${{ env.GOPATH }}/src/k8s.io/kops/go.mod'

- name: make quick-ci
working-directory: ${{ env.GOPATH }}/src/k8s.io/kops
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/update-deps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ jobs:
if: ${{ github.repository == 'kubernetes/kops' }}
runs-on: ubuntu-20.04
steps:
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
- uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7
with:
go-version: '1.22.3'
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
go-version-file: 'go.mod'
- name: Update Dependencies
id: update_deps
run: |
Expand All @@ -30,7 +30,7 @@ jobs:
echo 'EOF' >> $GITHUB_OUTPUT
- name: Create PR
if: ${{ steps.update_deps.outputs.changes != '' }}
uses: peter-evans/create-pull-request@a4f52f8033a6168103c2538976c07b467e8163bc
uses: peter-evans/create-pull-request@6d6857d36972b65feb161a90e484f2984215f83e
with:
title: 'Update dependencies'
commit-message: Update dependencies
Expand Down
6 changes: 3 additions & 3 deletions cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ options:
machineType: 'N1_HIGHCPU_8'
steps:
# Push the images
- name: 'docker.io/library/golang:1.22.3-bookworm'
- name: 'docker.io/library/golang:1.22.4-bookworm'
id: images
entrypoint: make
env:
Expand All @@ -21,7 +21,7 @@ steps:
- dns-controller-push
- kube-apiserver-healthcheck-push
# Push the artifacts
- name: 'docker.io/library/golang:1.22.3-bookworm'
- name: 'docker.io/library/golang:1.22.4-bookworm'
id: artifacts
entrypoint: make
env:
Expand All @@ -36,7 +36,7 @@ steps:
args:
- gcs-upload-and-tag
# Build cloudbuild artifacts (for attestation)
- name: 'docker.io/library/golang:1.22.3-bookworm'
- name: 'docker.io/library/golang:1.22.4-bookworm'
id: cloudbuild-artifacts
entrypoint: make
env:
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module k8s.io/kops

go 1.22.3
go 1.22.4

require (
cloud.google.com/go/compute/metadata v0.3.0
Expand Down
2 changes: 1 addition & 1 deletion hack/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module k8s.io/kops/hack

go 1.22.3
go 1.22.4

require (
github.com/client9/misspell v0.3.4
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module k8s.io/kops/tests/e2e

go 1.22.3
go 1.22.4

replace k8s.io/kops => ../../.

Expand Down
2 changes: 1 addition & 1 deletion tools/otel/traceserver/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module k8s.io/kops/tools/otel/traceserver

go 1.22.3
go 1.22.4

require (
go.opentelemetry.io/proto/otlp v1.2.0
Expand Down

0 comments on commit fae4122

Please sign in to comment.