mirror of https://github.com/k3s-io/k3s.git
Run go generate in local-path-provisioner Updatecli pipeline (#7181)
Signed-off-by: Guilherme Macedo <guilherme.macedo@suse.com>pull/7204/head
parent
8ec7d5e6b0
commit
37b3f4d25c
|
@ -0,0 +1,10 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -eux
|
||||
|
||||
./scripts/download >&2
|
||||
go generate >&2
|
||||
git diff
|
||||
|
||||
exit 0
|
||||
|
|
@ -47,6 +47,14 @@ sources:
|
|||
token: "{{ requiredEnv .github.token }}"
|
||||
versionfilter:
|
||||
kind: "latest"
|
||||
get-pwd:
|
||||
name: "Run Updatecli execution directory"
|
||||
kind: "shell"
|
||||
disablesourceinput: true
|
||||
spec:
|
||||
command: 'pwd'
|
||||
environments:
|
||||
- name: PATH
|
||||
|
||||
conditions:
|
||||
local-path-provisioner:
|
||||
|
@ -68,3 +76,16 @@ targets:
|
|||
- "scripts/airgap/image-list.txt"
|
||||
matchpattern: 'rancher/local-path-provisioner:v\d+\.\d+\.\d+(-\w+)?'
|
||||
replacepattern: 'rancher/local-path-provisioner:{{ source `local-path-provisioner` }}'
|
||||
go-generate:
|
||||
name: "Run go generate"
|
||||
kind: "shell"
|
||||
scmid: "k3s"
|
||||
dependson:
|
||||
- "local-path-provisioner"
|
||||
disablesourceinput: true
|
||||
spec:
|
||||
command: '{{ source "get-pwd" }}/updatecli/scripts/run-go-generate.sh'
|
||||
environments:
|
||||
- name: PATH
|
||||
- name: HOME
|
||||
|
||||
|
|
Loading…
Reference in New Issue