@@ -3,20 +3,16 @@ name: test-chart-releaser
|
|||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
|
permissions: {}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
test_chart_releaser_install_action:
|
test_chart_releaser_install_action:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
actions: none
|
contents: read
|
||||||
checks: none
|
|
||||||
contents: none
|
|
||||||
deployments: none
|
|
||||||
issues: none
|
|
||||||
packages: none
|
|
||||||
pull-requests: none
|
|
||||||
repository-projects: none
|
|
||||||
security-events: none
|
|
||||||
statuses: none
|
|
||||||
name: Install chart-releaser and test presence in path
|
name: Install chart-releaser and test presence in path
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
||||||
@@ -27,7 +23,17 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
CR_TOKEN: "FAKE_SECRETS"
|
CR_TOKEN: "FAKE_SECRETS"
|
||||||
- name: Check install!
|
- name: Check install!
|
||||||
run: cr version
|
run: |
|
||||||
|
cr version
|
||||||
|
CR_VERSION_OUTPUT=$(cr version 2>&1 /dev/null)
|
||||||
|
ACTUAL_VERSION=$(echo "$CR_VERSION_OUTPUT" | grep GitVersion | rev | cut -d ' ' -f1 | rev)
|
||||||
|
if [[ $ACTUAL_VERSION != 'v1.7.0' ]]; then
|
||||||
|
echo 'should be v1.7.0'
|
||||||
|
exit 1
|
||||||
|
else
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
shell: bash
|
||||||
- name: Check root directory
|
- name: Check root directory
|
||||||
run: |
|
run: |
|
||||||
if ! git diff --stat --exit-code; then
|
if ! git diff --stat --exit-code; then
|
||||||
@@ -37,17 +43,10 @@ jobs:
|
|||||||
|
|
||||||
test_chart_releaser_action:
|
test_chart_releaser_action:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
actions: none
|
contents: read
|
||||||
checks: none
|
|
||||||
contents: none
|
|
||||||
deployments: none
|
|
||||||
issues: none
|
|
||||||
packages: none
|
|
||||||
pull-requests: none
|
|
||||||
repository-projects: none
|
|
||||||
security-events: none
|
|
||||||
statuses: none
|
|
||||||
name: Install chart-releaser and run it
|
name: Install chart-releaser and run it
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ A GitHub action to turn a GitHub project into a self-hosted Helm chart repo, usi
|
|||||||
|
|
||||||
### Inputs
|
### Inputs
|
||||||
|
|
||||||
- `version`: The chart-releaser version to use (default: v1.6.0)
|
- `version`: The chart-releaser version to use (default: v1.7.0)
|
||||||
- `config`: Optional config file for chart-releaser. For more information on the config file, see the [documentation](https://github.com/helm/chart-releaser#config-file)
|
- `config`: Optional config file for chart-releaser. For more information on the config file, see the [documentation](https://github.com/helm/chart-releaser#config-file)
|
||||||
- `charts_dir`: The charts directory
|
- `charts_dir`: The charts directory
|
||||||
- `skip_packaging`: This option, when populated, will skip the packaging step. This allows you to do more advanced packaging of your charts (for example, with the `helm package` command) before this action runs. This action will only handle the indexing and publishing steps.
|
- `skip_packaging`: This option, when populated, will skip the packaging step. This allows you to do more advanced packaging of your charts (for example, with the `helm package` command) before this action runs. This action will only handle the indexing and publishing steps.
|
||||||
@@ -57,7 +57,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
@@ -72,7 +72,7 @@ jobs:
|
|||||||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
||||||
|
|
||||||
- name: Run chart-releaser
|
- name: Run chart-releaser
|
||||||
uses: helm/chart-releaser-action@v1.6.0
|
uses: helm/chart-releaser-action@v1.7.0
|
||||||
env:
|
env:
|
||||||
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
||||||
```
|
```
|
||||||
@@ -86,7 +86,7 @@ It does this – during every push to `main` – by checking each chart in your
|
|||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- name: Run chart-releaser
|
- name: Run chart-releaser
|
||||||
uses: helm/chart-releaser-action@v1.6.0
|
uses: helm/chart-releaser-action@v1.7.0
|
||||||
with:
|
with:
|
||||||
charts_dir: charts
|
charts_dir: charts
|
||||||
config: cr.yaml
|
config: cr.yaml
|
||||||
|
|||||||
+2
-2
@@ -20,9 +20,9 @@ branding:
|
|||||||
icon: anchor
|
icon: anchor
|
||||||
inputs:
|
inputs:
|
||||||
version:
|
version:
|
||||||
description: "The chart-releaser version to use (default: v1.6.1)"
|
description: "The chart-releaser version to use (default: v1.7.0)"
|
||||||
required: false
|
required: false
|
||||||
default: v1.6.1
|
default: v1.7.0
|
||||||
config:
|
config:
|
||||||
description: "The relative path to the chart-releaser config file"
|
description: "The relative path to the chart-releaser config file"
|
||||||
required: false
|
required: false
|
||||||
|
|||||||
Reference in New Issue
Block a user