actually run CI on push
This commit is contained in:
@@ -27,7 +27,7 @@ jobs:
|
|||||||
release-helm:
|
release-helm:
|
||||||
permissions:
|
permissions:
|
||||||
pull-requests: write
|
pull-requests: write
|
||||||
name: ${{ github.ref == 'refs/heads/main' && '(Production)' || '(Preview)' }} Publish to Cloudflare Pages
|
name: "${{ github.ref == 'refs/heads/master' && '(Production)' || '(Preview)' }} Charts/Website: Build-and-Release"
|
||||||
runs-on: actions-runner-large
|
runs-on: actions-runner-large
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
@@ -38,7 +38,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'
|
||||||
run: |
|
run: |
|
||||||
ver=$(./charttool genchangelog format-version)
|
ver=$(./charttool genchangelog format-version)
|
||||||
key="changelog-json-format-$ver"
|
key="changelog-json-format-$ver"
|
||||||
@@ -47,7 +47,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Cache Changelog
|
- name: Cache Changelog
|
||||||
id: cache-changelog
|
id: cache-changelog
|
||||||
if: github.event_name != 'push'
|
if: github.event_name == 'push'
|
||||||
uses: actions/cache@3624ceb22c1c5a301c8db4169662070a689d9ea8 # v4
|
uses: actions/cache@3624ceb22c1c5a301c8db4169662070a689d9ea8 # v4
|
||||||
with:
|
with:
|
||||||
path: changelog.json.gz
|
path: changelog.json.gz
|
||||||
@@ -55,7 +55,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Generate Changelog
|
- name: Generate Changelog
|
||||||
shell: bash
|
shell: bash
|
||||||
if: github.event_name != 'push'
|
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"
|
||||||
@@ -86,7 +86,7 @@ jobs:
|
|||||||
|
|
||||||
# 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'
|
||||||
run: |
|
run: |
|
||||||
gpg_dir=.cr-gpg
|
gpg_dir=.cr-gpg
|
||||||
mkdir "$gpg_dir"
|
mkdir "$gpg_dir"
|
||||||
@@ -101,13 +101,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'
|
||||||
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'
|
||||||
env:
|
env:
|
||||||
CR_TOKEN: "${{ secrets.BOT_TOKEN }}"
|
CR_TOKEN: "${{ secrets.BOT_TOKEN }}"
|
||||||
CR_SKIP_EXISTING: "true"
|
CR_SKIP_EXISTING: "true"
|
||||||
@@ -120,12 +120,11 @@ jobs:
|
|||||||
|
|
||||||
- name: Helm | Logout
|
- name: Helm | Logout
|
||||||
shell: bash
|
shell: bash
|
||||||
if: github.event_name != 'push'
|
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
|
||||||
shell: bash
|
shell: bash
|
||||||
if: github.event_name != 'push'
|
|
||||||
run: |
|
run: |
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
echo "Maing sure directories exist..."
|
echo "Maing sure directories exist..."
|
||||||
@@ -238,7 +237,7 @@ jobs:
|
|||||||
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
||||||
# By default Cloudflare marks `main` as the "production" branch.
|
# By default Cloudflare marks `main` as the "production" branch.
|
||||||
# So when this workflow is pushed to refs/heads/main, we set the branch to `main`/"production".
|
# So when this workflow is pushed to refs/heads/main, we set the branch to `main`/"production".
|
||||||
branch: ${{ github.ref == 'refs/heads/main' && 'main' || github.head_ref }}
|
branch: ${{ github.ref == 'refs/heads/master' && 'master' || github.head_ref }}
|
||||||
# The project name in Cloudflare
|
# The project name in Cloudflare
|
||||||
projectName: website
|
projectName: website
|
||||||
directory: ./website/build
|
directory: ./website/build
|
||||||
|
|||||||
Reference in New Issue
Block a user