File tree Expand file tree Collapse file tree 2 files changed +90
-0
lines changed
Expand file tree Collapse file tree 2 files changed +90
-0
lines changed Original file line number Diff line number Diff line change 1+ name : update shield charts for new cluster-shield release
2+
3+ scms :
4+ github :
5+ kind : " github"
6+ spec :
7+ user : " updatecli"
8+ 9+ owner : " sysdiglabs"
10+ repository : " charts"
11+ token : ' {{ requiredEnv "GITHUB_TOKEN" }}'
12+ username : draios-jenkins
13+ branch : " main"
14+
15+ actions :
16+ github :
17+ kind : " github/pullrequest"
18+ scmid : " github"
19+ spec :
20+ automerge : true
21+ description : ' bump cluster-shield image tags for `shield` chart to {{ requiredEnv "CLUSTER_SHIELD_RELEASE" }}'
22+ labels :
23+ - " automated PR"
24+ mergemethod : squash
25+ title : ' feat(shield): release cluster-shield {{ requiredEnv "CLUSTER_SHIELD_RELEASE" }}'
26+
27+ sources :
28+ clusterShieldRelease :
29+ kind : dockerimage
30+ spec :
31+ image : quay.io/sysdig/cluster-shield
32+ tagfilter : ' {{ requiredEnv "CLUSTER_SHIELD_RELEASE" }}'
33+ versionfilter :
34+ kind : regex
35+ pattern : ' [0-9]+\.[0-9]+\.[0-9]+$'
36+
37+ targets :
38+ updateShieldChart :
39+ name : " update the shield chart"
40+ kind : helmchart
41+ scmid : github
42+ spec :
43+ name : " charts/shield"
44+ file : values.yaml
45+ key : " $.cluster.image.tag"
46+ versionincrement : auto
47+
48+ updateShieldReadme :
49+ name : " update the shield readme"
50+ kind : shell
51+ scmid : github
52+ disablesourceinput : true
53+ dependson :
54+ - updateShieldChart
55+ spec :
56+ shell : /bin/bash
57+ command : " sed -i 's/: # /: # /g' charts/shield/values.yaml && make docs"
Original file line number Diff line number Diff line change 1+ ---
2+ name : Update charts for Cluster Shield release
3+
4+ on :
5+ workflow_dispatch :
6+ inputs :
7+ release :
8+ description : ' Cluster Shield Version'
9+ required : true
10+
11+ permissions :
12+ contents : read
13+ pull-requests : write
14+
15+ jobs :
16+ cluster-shield-release :
17+ runs-on : ubuntu-latest
18+ steps :
19+ - name : Checkout
20+ uses : actions/checkout@v6
21+
22+ - uses : actions/setup-go@v6
23+ with :
24+ go-version : " 1.24"
25+
26+ - name : Install Updatecli in the runner
27+ 28+
29+ - name : Run Updatecli in apply mode
30+ run : " updatecli apply --config .github/updatecli.d/config-cluster-shield-release.yaml"
31+ env :
32+ CLUSTER_SHIELD_RELEASE : " ${{ inputs.release }}"
33+ GITHUB_TOKEN : " ${{ secrets.TOOLS_JENKINS_ADMIN_ACCESS_GITHUB_TOKEN }}"
You can’t perform that action at this time.
0 commit comments