Update charts-release.yaml
Signed-off-by: Kjeld Schouten <info@kjeldschouten.nl>
This commit is contained in:
@@ -43,6 +43,8 @@ jobs:
|
|||||||
changed:
|
changed:
|
||||||
- 'website/**'
|
- 'website/**'
|
||||||
- '**/docs/**'
|
- '**/docs/**'
|
||||||
|
- '**/Chart.yaml'
|
||||||
|
|
||||||
|
|
||||||
release-helm:
|
release-helm:
|
||||||
permissions:
|
permissions:
|
||||||
@@ -58,7 +60,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Get Changelog Format Version
|
- name: Get Changelog Format Version
|
||||||
shell: bash
|
shell: bash
|
||||||
if: github.event_name == 'push' && needs.check_changes.outputs.changes_detected == 'true'
|
if: github.event_name == 'push'
|
||||||
run: |
|
run: |
|
||||||
ver=$(./charttool genchangelog format-version)
|
ver=$(./charttool genchangelog format-version)
|
||||||
rev="1"
|
rev="1"
|
||||||
@@ -68,7 +70,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Cache Changelog
|
- name: Cache Changelog
|
||||||
id: cache-changelog
|
id: cache-changelog
|
||||||
if: github.event_name == 'push' && needs.check_changes.outputs.changes_detected == 'true'
|
if: github.event_name == 'push'
|
||||||
uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4
|
uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4
|
||||||
with:
|
with:
|
||||||
key: ${{ env.CHANGELOG_CACHE_KEY }}-${{ hashFiles('**/Chart.yaml') }}
|
key: ${{ env.CHANGELOG_CACHE_KEY }}-${{ hashFiles('**/Chart.yaml') }}
|
||||||
@@ -81,7 +83,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Generate Changelog
|
- name: Generate Changelog
|
||||||
shell: bash
|
shell: bash
|
||||||
if: github.event_name == 'push' && needs.check_changes.outputs.changes_detected == 'true'
|
if: github.event_name == 'push'
|
||||||
run: |
|
run: |
|
||||||
export REPO_PATH="./"
|
export REPO_PATH="./"
|
||||||
export TEMPLATE_PATH="./templates/CHANGELOG.md.tmpl"
|
export TEMPLATE_PATH="./templates/CHANGELOG.md.tmpl"
|
||||||
@@ -99,7 +101,6 @@ jobs:
|
|||||||
|
|
||||||
- name: Fix Pre-Commit issues
|
- name: Fix Pre-Commit issues
|
||||||
shell: bash
|
shell: bash
|
||||||
if: needs.check_changes.outputs.changes_detected == 'true'
|
|
||||||
run: |
|
run: |
|
||||||
echo "Running pre-commit test-and-cleanup..."
|
echo "Running pre-commit test-and-cleanup..."
|
||||||
pre-commit run --all ||:
|
pre-commit run --all ||:
|
||||||
@@ -107,14 +108,13 @@ jobs:
|
|||||||
find . -name '*.sh' | xargs chmod +x
|
find . -name '*.sh' | xargs chmod +x
|
||||||
|
|
||||||
- name: Install Helm
|
- name: Install Helm
|
||||||
if: needs.check_changes.outputs.changes_detected == 'true'
|
|
||||||
uses: azure/setup-helm@5119fcb9089d432beecbf79bb2c7915207344b78 # tag=v3
|
uses: azure/setup-helm@5119fcb9089d432beecbf79bb2c7915207344b78 # tag=v3
|
||||||
with:
|
with:
|
||||||
version: v3.14.0
|
version: v3.14.0
|
||||||
|
|
||||||
# Optional step if GPG signing is used
|
# Optional step if GPG signing is used
|
||||||
- name: Prepare GPG key
|
- name: Prepare GPG key
|
||||||
if: github.event_name == 'push' && needs.check_changes.outputs.changes_detected == 'true'
|
if: github.event_name == 'push'
|
||||||
run: |
|
run: |
|
||||||
gpg_dir=.cr-gpg
|
gpg_dir=.cr-gpg
|
||||||
mkdir "$gpg_dir"
|
mkdir "$gpg_dir"
|
||||||
@@ -129,13 +129,13 @@ jobs:
|
|||||||
GPG_PASSPHRASE: "${{ secrets.GPG_PASSPHRASE }}"
|
GPG_PASSPHRASE: "${{ secrets.GPG_PASSPHRASE }}"
|
||||||
|
|
||||||
- name: Helm | Login
|
- name: Helm | Login
|
||||||
if: github.event_name == 'push' && needs.check_changes.outputs.changes_detected == 'true'
|
if: github.event_name == 'push'
|
||||||
shell: bash
|
shell: bash
|
||||||
run: echo ${{ secrets.QUAY_SECRET }} | helm registry login -u ${{ secrets.QUAY_USER }} --password-stdin quay.io
|
run: echo ${{ secrets.QUAY_SECRET }} | helm registry login -u ${{ secrets.QUAY_USER }} --password-stdin quay.io
|
||||||
|
|
||||||
- name: Release Charts
|
- name: Release Charts
|
||||||
shell: bash
|
shell: bash
|
||||||
if: github.event_name == 'push' && needs.check_changes.outputs.changes_detected == 'true'
|
if: github.event_name == 'push'
|
||||||
env:
|
env:
|
||||||
CR_SKIP_EXISTING: "true"
|
CR_SKIP_EXISTING: "true"
|
||||||
run: |
|
run: |
|
||||||
@@ -147,7 +147,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Helm | Logout
|
- name: Helm | Logout
|
||||||
shell: bash
|
shell: bash
|
||||||
if: github.event_name == 'push' && needs.check_changes.outputs.changes_detected == 'true'
|
if: github.event_name == 'push'
|
||||||
run: helm registry logout quay.io
|
run: helm registry logout quay.io
|
||||||
|
|
||||||
- name: Copy docs to website
|
- name: Copy docs to website
|
||||||
|
|||||||
Reference in New Issue
Block a user