mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-29 02:45:06 +00:00
chore: publish helm charts to ghcr.io (#4479)
Signed-off-by: Batuhan Apaydın <batuhan.apaydin@trendyol.com>
This commit is contained in:
parent
b65d9fc5c6
commit
cd0d87542a
1 changed files with 14 additions and 1 deletions
15
.github/workflows/helm-release.yaml
vendored
15
.github/workflows/helm-release.yaml
vendored
|
@ -37,7 +37,7 @@ jobs:
|
|||
- name: Install Helm
|
||||
uses: azure/setup-helm@18bc76811624f360dbd7f18c2d4ecb32c7b87bab # v1.1
|
||||
with:
|
||||
version: v3.4.1
|
||||
version: v3.8.0
|
||||
|
||||
- name: Set version
|
||||
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
|
||||
|
@ -58,3 +58,16 @@ jobs:
|
|||
token: "${{ secrets.GITHUB_TOKEN }}"
|
||||
linting: off
|
||||
charts_dir: charts-tmp
|
||||
|
||||
- name: Login to GitHub Container Registry
|
||||
run: |
|
||||
helm registry login --username ${GITHUB_ACTOR} --password ${{ secrets.GITHUB_TOKEN }} ghcr.io
|
||||
|
||||
- name: Publish OCI Charts
|
||||
run: |
|
||||
for dir in `find charts-tmp -maxdepth 1 -mindepth 1 -type d -print`; do
|
||||
chart=${dir##*/}
|
||||
echo "Found chart: ${chart}"
|
||||
helm package charts-tmp/${chart} --destination dist
|
||||
helm push dist/${chart}-*.tgz oci://ghcr.io/${GITHUB_REPOSITORY}
|
||||
done
|
Loading…
Add table
Reference in a new issue