This repository was archived by the owner on Oct 14, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +36
-2
lines changed Expand file tree Collapse file tree 3 files changed +36
-2
lines changed Original file line number Diff line number Diff line change
1
+ on :
2
+ release :
3
+ types : [published]
4
+ name : " Publish Helm Charts"
5
+ jobs :
6
+ helm :
7
+ name : Package and Publish
8
+ runs-on : ubuntu-latest
9
+ steps :
10
+ - uses : actions/checkout@v2
11
+ - name : " Install yq"
12
+ run : |
13
+ sudo snap install yq
14
+ - name : Parse Tag
15
+ run : echo ::set-env name=RELEASE_VERSION::${GITHUB_REF#refs/*/}
16
+ - name : " Publish Helm Chart"
17
+ env :
18
+ HELM_REGISTRY : https://charts.securecodebox.io
19
+ USERNAME : ${{ secrets.HELM_REGISTRY_USERNAME }}
20
+ PASSWORD : ${{ secrets.HELM_REGISTRY_PASSWORD }}
21
+ run : |
22
+ # Publish charts in all folders containing a `Chart.yaml` file
23
+ # https://github.com/koalaman/shellcheck/wiki/SC2044
24
+ find . -type f -name Chart.yaml -print0 | while IFS= read -r -d '' chart; do
25
+ (
26
+ dir="$(dirname "${chart}")"
27
+ cd "${dir}" || exit
28
+ echo "Processing Chart in $dir"
29
+ helm lint .
30
+ helm package --version $RELEASE_VERSION .
31
+ NAME=$(yq read - name < Chart.yaml)
32
+ curl --silent --show-error --user "${USERNAME}:${PASSWORD}" --data-binary "@${NAME}-${RELEASE_VERSION}.tgz" "${HELM_REGISTRY}/api/charts"
33
+ )
34
+ done
Original file line number Diff line number Diff line change 1
1
apiVersion : v2
2
2
version : 0.1.0
3
3
type : application
4
- appVersion : " latest "
4
+ appVersion : " v1.4.0 "
5
5
name : bodgeit
6
6
description : " The BodgeIt Store is a vulnerable web app which is aimed at people who are new to pen testing"
7
7
home : https://github.com/psiinon/bodgeit
Original file line number Diff line number Diff line change 1
1
apiVersion : v2
2
2
version : 0.1.0
3
- appVersion : " v10.0.0 "
3
+ appVersion : " v11.1.2 "
4
4
name : juice-shop
5
5
description : " OWASP Juice Shop: Probably the most modern and sophisticated insecure web application"
6
6
type : application
You can’t perform that action at this time.
0 commit comments