Skip to content

Commit

Permalink
knmstate: Install go from go.mod
Browse files Browse the repository at this point in the history
Use golang specified at go.mod for to check PR [1]

[1] nmstate/kubernetes-nmstate#963

Signed-off-by: Quique Llorente <ellorent@redhat.com>
  • Loading branch information
qinqon committed Jan 18, 2022
1 parent 1a463bd commit 62e55d5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,8 @@ postsubmits:
value: kubevirt-bot
- name: GITHUB_EMAIL
value: kubevirtbot@redhat.com
- name: GIMME_GO_VERSION
value: "1.16"
command:
- "export GIMME_GO_VERSION=`grep '^go' go.mod |sed 's/go //'`"
- "/usr/local/bin/runner.sh"
- "/bin/bash"
- "-c"
Expand Down Expand Up @@ -74,9 +73,8 @@ postsubmits:
value: kubevirt-bot
- name: GITHUB_EMAIL
value: kubevirtbot@redhat.com
- name: GIMME_GO_VERSION
value: "1.16"
command:
- "export GIMME_GO_VERSION=`grep '^go' go.mod |sed 's/go //'`"
- "/usr/local/bin/runner.sh"
- "/bin/bash"
- "-c"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ presubmits:
- image: quay.io/kubevirtci/golang:v20220110-c066ff5
securityContext:
privileged: true
env:
- name: GIMME_GO_VERSION
value: "1.16"
command:
- "/bin/bash"
args:
- "export GIMME_GO_VERSION=$(grep '^go' go.mod |sed 's/go //')"
- "/usr/local/bin/runner.sh"
- "/bin/sh"
- "-c"
Expand Down Expand Up @@ -58,10 +58,8 @@ presubmits:
resources:
requests:
memory: "29Gi"
env:
- name: GIMME_GO_VERSION
value: "1.16"
command:
- "export GIMME_GO_VERSION=`grep '^go' go.mod |sed 's/go //'`"
- "/usr/local/bin/runner.sh"
- "/bin/sh"
- "-c"
Expand Down Expand Up @@ -94,10 +92,8 @@ presubmits:
resources:
requests:
memory: "29Gi"
env:
- name: GIMME_GO_VERSION
value: "1.16"
command:
- "export GIMME_GO_VERSION=`grep '^go' go.mod |sed 's/go //'`"
- "/usr/local/bin/runner.sh"
- "/bin/sh"
- "-c"
Expand Down Expand Up @@ -160,10 +156,8 @@ presubmits:
resources:
requests:
memory: "29Gi"
env:
- name: GIMME_GO_VERSION
value: "1.16"
command:
- "export GIMME_GO_VERSION=`grep '^go' go.mod |sed 's/go //'`"
- "/usr/local/bin/runner.sh"
- "/bin/sh"
- "-c"
Expand Down

0 comments on commit 62e55d5

Please sign in to comment.