File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Updatecli
2+ on :
3+ # Allow to manually trigger Updatecli
4+ workflow_dispatch :
5+ # Trigger Updatecli on main branch changes
6+ # To rebase existing PR
7+ push :
8+ branches : [main]
9+ # Trigger Updatecli pullrequest to test potential changes
10+ pull_request :
11+ branches : [main]
12+ # Periodically checks update
13+ schedule :
14+ # Run every hour
15+ - cron : " 0 * * * *"
16+
17+ jobs :
18+ updatecli :
19+ name : Run Updatecli
20+ runs-on : ubuntu-latest
21+ permissions :
22+ contents : write # for updatecli to update the repository
23+ pull-requests : write # for updatecli to create a PR
24+ steps :
25+ - name : Checkout
26+ uses : actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
27+ with :
28+ persist-credentials : false
29+
30+ - name : Install Updatecli in the runner
31+ uses : updatecli/updatecli-action@e71be7554f3f940bc439cf720b3e4e379823c562 # v3.2.0
32+
33+ - name : Run Updatecli (dryrun)
34+ if : github.ref != 'refs/heads/main'
35+ env :
36+ UPDATECLI_GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
37+ UPDATECLI_GITHUB_OWNER : ${{ github.repository_owner }}
38+ run : " updatecli compose diff --file updatecli/updatecli-compose.yaml"
39+
40+ - name : Run Updatecli
41+ if : github.ref == 'refs/heads/main'
42+ env :
43+ UPDATECLI_GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
44+ UPDATECLI_GITHUB_OWNER : ${{ github.repository_owner }}
45+ run : " updatecli compose apply --file updatecli/updatecli-compose.yaml"
Original file line number Diff line number Diff line change 1+ policies :
2+ - name : Update Go version
3+ config :
4+ - " updatecli.d"
5+ values :
6+ - values.yaml
Original file line number Diff line number Diff line change 1+ name : Update Golang version
2+
3+ pipelineid : golang/version
4+
5+ sources :
6+ go :
7+ name : Get latest Golang version
8+ kind : golang
9+
10+ conditions :
11+ docker :
12+ name : Check Docker image tag
13+ kind : dockerimage
14+ sourceid : go
15+ spec :
16+ image : registry.suse.com/bci/golang
17+
18+ targets :
19+ gomod :
20+ name : ' deps(go): update Go version to {{ source "go" }}'
21+ sourceid : go
22+ kind : golang/gomod
23+ scmid : default
24+ spec :
25+ file : go.mod
26+
27+ dockerfile :
28+ name : " deps(go): update Docker image tag"
29+ kind : dockerfile
30+ sourceid : go
31+ scmid : default
32+ spec :
33+ files :
34+ - package/Dockerfile
35+ instruction :
36+ keyword : FROM
37+ matcher : registry.suse.com/bci/golang
38+
39+ actions :
40+ default :
41+ title : ' deps(go): update Go to {{ source "go" }} version'
42+ kind : github/pullrequest
43+ scmid : default
44+ spec :
45+ automerge : false
46+ mergemethod : squash
47+ description : |
48+ Automatic Golang version {{ source "go" }} update.
49+ This PR has been created by the automation used to automatically update the Golang version in the neuvector project
50+ REMEMBER IF YOU WANT TO MERGE IN A SINGLE COMMIT CHANGES AND VERSION BUMP, YOU MUST SQUASH THE COMMIT BEFORE MERGING THIS PR!
51+ draft : false
52+ labels :
53+ - " chore"
54+ - " dependencies"
55+
56+ scms :
57+ default :
58+ kind : github
59+ spec :
60+ user : " {{ .github.author }}"
61+ email : " {{ .github.email }}"
62+ owner : " {{ requiredEnv .github.owner }}"
63+ repository : " registry-adapter"
64+ token : " {{ requiredEnv .github.token }}"
65+ username : " {{ requiredEnv .github.user }}"
66+ branch : " {{ .github.branch }}"
67+ commitmessage :
68+ type : " chore"
69+ scope : deps
70+ title : " update Golang version"
71+ hidecredit : true
72+ footers : " Signed-off-by: NeuVector bot <neuvector-bot@users.noreply.github.com>"
Original file line number Diff line number Diff line change 1+ github :
2+ owner : " UPDATECLI_GITHUB_OWNER"
3+ token : " UPDATECLI_GITHUB_TOKEN"
4+ branch : " main"
5+ author : " NeuVector bot"
6+ user : " UPDATECLI_GITHUB_OWNER"
7+ email : " neuvector-bot@users.noreply.github.com"
You can’t perform that action at this time.
0 commit comments