Update charts-release.yaml
Signed-off-by: Kjeld Schouten <info@kjeldschouten.nl>
This commit is contained in:
@@ -50,7 +50,6 @@ jobs:
|
|||||||
name: "${{ github.ref == 'refs/heads/master' && '(Production)' || '(Preview)' }}"
|
name: "${{ github.ref == 'refs/heads/master' && '(Production)' || '(Preview)' }}"
|
||||||
runs-on: actions-runners
|
runs-on: actions-runners
|
||||||
needs: check_changes
|
needs: check_changes
|
||||||
if: needs.check_changes.outputs.changes_detected == 'true'
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4
|
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4
|
||||||
@@ -59,7 +58,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Get Changelog Format Version
|
- name: Get Changelog Format Version
|
||||||
shell: bash
|
shell: bash
|
||||||
if: github.event_name == 'push'
|
if: github.event_name == 'push' && needs.check_changes.outputs.changes_detected == 'true'
|
||||||
run: |
|
run: |
|
||||||
ver=$(./charttool genchangelog format-version)
|
ver=$(./charttool genchangelog format-version)
|
||||||
key="changelog-json-format-$ver"
|
key="changelog-json-format-$ver"
|
||||||
@@ -68,7 +67,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Cache Changelog
|
- name: Cache Changelog
|
||||||
id: cache-changelog
|
id: cache-changelog
|
||||||
if: github.event_name == 'push'
|
if: github.event_name == 'push' && needs.check_changes.outputs.changes_detected == 'true'
|
||||||
uses: actions/cache@3624ceb22c1c5a301c8db4169662070a689d9ea8 # v4
|
uses: actions/cache@3624ceb22c1c5a301c8db4169662070a689d9ea8 # v4
|
||||||
with:
|
with:
|
||||||
path: changelog.json.gz
|
path: changelog.json.gz
|
||||||
@@ -76,7 +75,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Generate Changelog
|
- name: Generate Changelog
|
||||||
shell: bash
|
shell: bash
|
||||||
if: github.event_name == 'push'
|
if: github.event_name == 'push' && needs.check_changes.outputs.changes_detected == 'true'
|
||||||
run: |
|
run: |
|
||||||
export REPO_PATH="./"
|
export REPO_PATH="./"
|
||||||
export TEMPLATE_PATH="./templates/CHANGELOG.md.tmpl"
|
export TEMPLATE_PATH="./templates/CHANGELOG.md.tmpl"
|
||||||
@@ -94,6 +93,7 @@ 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 ||:
|
||||||
@@ -101,13 +101,14 @@ 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'
|
if: github.event_name == 'push' && needs.check_changes.outputs.changes_detected == 'true'
|
||||||
run: |
|
run: |
|
||||||
gpg_dir=.cr-gpg
|
gpg_dir=.cr-gpg
|
||||||
mkdir "$gpg_dir"
|
mkdir "$gpg_dir"
|
||||||
@@ -122,13 +123,13 @@ jobs:
|
|||||||
GPG_PASSPHRASE: "${{ secrets.GPG_PASSPHRASE }}"
|
GPG_PASSPHRASE: "${{ secrets.GPG_PASSPHRASE }}"
|
||||||
|
|
||||||
- name: Helm | Login
|
- name: Helm | Login
|
||||||
if: github.event_name == 'push'
|
if: github.event_name == 'push' && needs.check_changes.outputs.changes_detected == 'true'
|
||||||
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'
|
if: github.event_name == 'push' && needs.check_changes.outputs.changes_detected == 'true'
|
||||||
env:
|
env:
|
||||||
CR_SKIP_EXISTING: "true"
|
CR_SKIP_EXISTING: "true"
|
||||||
run: |
|
run: |
|
||||||
@@ -140,10 +141,11 @@ jobs:
|
|||||||
|
|
||||||
- name: Helm | Logout
|
- name: Helm | Logout
|
||||||
shell: bash
|
shell: bash
|
||||||
if: github.event_name == 'push'
|
if: github.event_name == 'push' && needs.check_changes.outputs.changes_detected == 'true'
|
||||||
run: helm registry logout quay.io
|
run: helm registry logout quay.io
|
||||||
|
|
||||||
- name: Copy docs to website
|
- name: Copy docs to website
|
||||||
|
if: needs.check_changes.outputs.changes_detected == 'true'
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
@@ -177,7 +179,7 @@ jobs:
|
|||||||
done
|
done
|
||||||
|
|
||||||
- name: Comment deploy start
|
- name: Comment deploy start
|
||||||
if: github.event_name != 'push'
|
if: github.event_name != 'push' && needs.check_changes.outputs.changes_detected == 'true'
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
uses: mshick/add-pr-comment@b8f338c590a895d50bcbfa6c5859251edc8952fc # v2
|
uses: mshick/add-pr-comment@b8f338c590a895d50bcbfa6c5859251edc8952fc # v2
|
||||||
with:
|
with:
|
||||||
@@ -194,6 +196,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Prefetch contributor icons
|
- name: Prefetch contributor icons
|
||||||
shell: bash
|
shell: bash
|
||||||
|
if: needs.check_changes.outputs.changes_detected == 'true'
|
||||||
run: |
|
run: |
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
@@ -218,6 +221,7 @@ jobs:
|
|||||||
#done < src/assets/contributors.json
|
#done < src/assets/contributors.json
|
||||||
|
|
||||||
- name: Setup astro Cache
|
- name: Setup astro Cache
|
||||||
|
if: needs.check_changes.outputs.changes_detected == 'true'
|
||||||
uses: actions/cache@3624ceb22c1c5a301c8db4169662070a689d9ea8 # v4
|
uses: actions/cache@3624ceb22c1c5a301c8db4169662070a689d9ea8 # v4
|
||||||
with:
|
with:
|
||||||
# Cache for build and optimized images.
|
# Cache for build and optimized images.
|
||||||
@@ -235,6 +239,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Setup node_modules Cache
|
- name: Setup node_modules Cache
|
||||||
id: modulescache
|
id: modulescache
|
||||||
|
if: needs.check_changes.outputs.changes_detected == 'true'
|
||||||
uses: actions/cache@3624ceb22c1c5a301c8db4169662070a689d9ea8 # v4
|
uses: actions/cache@3624ceb22c1c5a301c8db4169662070a689d9ea8 # v4
|
||||||
with:
|
with:
|
||||||
# Cache for npm and optimized images.
|
# Cache for npm and optimized images.
|
||||||
@@ -242,6 +247,7 @@ jobs:
|
|||||||
key: modules-${{ hashFiles('package-lock.json') }}
|
key: modules-${{ hashFiles('package-lock.json') }}
|
||||||
|
|
||||||
- name: Setup Node
|
- name: Setup Node
|
||||||
|
if: needs.check_changes.outputs.changes_detected == 'true'
|
||||||
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4
|
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4
|
||||||
with:
|
with:
|
||||||
node-version-file: ./website/.nvmrc
|
node-version-file: ./website/.nvmrc
|
||||||
@@ -251,15 +257,15 @@ jobs:
|
|||||||
run: cd website && npm ci
|
run: cd website && npm ci
|
||||||
|
|
||||||
- name: Check
|
- name: Check
|
||||||
if: (!contains(github.event.pull_request.title, 'by renovate') || contains(github.event.pull_request.title, 'website'))
|
if: needs.check_changes.outputs.changes_detected == 'true'
|
||||||
run: cd website && npm run check
|
run: cd website && npm run check
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
if: (!contains(github.event.pull_request.title, 'by renovate') || contains(github.event.pull_request.title, 'website'))
|
if: needs.check_changes.outputs.changes_detected == 'true'
|
||||||
run: cd website && npm run build
|
run: cd website && npm run build
|
||||||
|
|
||||||
- name: Publish to Cloudflare Pages
|
- name: Publish to Cloudflare Pages
|
||||||
if: (!contains(github.event.pull_request.title, 'by renovate') || contains(github.event.pull_request.title, 'website'))
|
if: needs.check_changes.outputs.changes_detected == 'true'
|
||||||
id: cloudflare
|
id: cloudflare
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
uses: cloudflare/pages-action@f0a1cd58cd66095dee69bfa18fa5efd1dde93bca # v1
|
uses: cloudflare/pages-action@f0a1cd58cd66095dee69bfa18fa5efd1dde93bca # v1
|
||||||
@@ -275,7 +281,7 @@ jobs:
|
|||||||
wranglerVersion: "3"
|
wranglerVersion: "3"
|
||||||
|
|
||||||
- name: Comment deploy url
|
- name: Comment deploy url
|
||||||
if: github.event_name != 'push' && (!contains(github.event.pull_request.title, 'by renovate') || contains(github.event.pull_request.title, 'website'))
|
if: github.event_name != 'push' && needs.check_changes.outputs.changes_detected == 'true'
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
uses: mshick/add-pr-comment@b8f338c590a895d50bcbfa6c5859251edc8952fc # v2
|
uses: mshick/add-pr-comment@b8f338c590a895d50bcbfa6c5859251edc8952fc # v2
|
||||||
with:
|
with:
|
||||||
@@ -292,4 +298,5 @@ jobs:
|
|||||||
---
|
---
|
||||||
|
|
||||||
- name: Release-and-Website Completed
|
- name: Release-and-Website Completed
|
||||||
|
if: needs.check_changes.outputs.changes_detected == 'true'
|
||||||
run: echo "DONE"
|
run: echo "DONE"
|
||||||
|
|||||||
Reference in New Issue
Block a user