Skip to content
This repository was archived by the owner on Oct 14, 2020. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/helm-charts.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
on:
release:
types: [published]
name: "Publish Helm Charts"
jobs:
helm:
name: Package and Publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: "Install yq"
run: |
sudo snap install yq
- name: Parse Tag
run: echo ::set-env name=RELEASE_VERSION::${GITHUB_REF#refs/*/}
- name: "Publish Helm Chart"
env:
HELM_REGISTRY: https://charts.securecodebox.io
USERNAME: ${{ secrets.HELM_REGISTRY_USERNAME }}
PASSWORD: ${{ secrets.HELM_REGISTRY_PASSWORD }}
run: |
# Publish charts in all folders containing a `Chart.yaml` file
# https://github.com/koalaman/shellcheck/wiki/SC2044
find . -type f -name Chart.yaml -print0 | while IFS= read -r -d '' chart; do
(
dir="$(dirname "${chart}")"
cd "${dir}" || exit
echo "Processing Chart in $dir"
helm lint .
helm package --version $RELEASE_VERSION .
NAME=$(yq read - name < Chart.yaml)
curl --silent --show-error --user "${USERNAME}:${PASSWORD}" --data-binary "@${NAME}-${RELEASE_VERSION}.tgz" "${HELM_REGISTRY}/api/charts"
)
done
2 changes: 1 addition & 1 deletion demo-apps/bodgeit/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
version: 0.1.0
type: application
appVersion: "latest"
appVersion: "v1.4.0"
name: bodgeit
description: "The BodgeIt Store is a vulnerable web app which is aimed at people who are new to pen testing"
home: https://github.com/psiinon/bodgeit
Expand Down
2 changes: 1 addition & 1 deletion demo-apps/juice-shop/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
version: 0.1.0
appVersion: "v10.0.0"
appVersion: "v11.1.2"
name: juice-shop
description: "OWASP Juice Shop: Probably the most modern and sophisticated insecure web application"
type: application
Expand Down