-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: add workflow to auto-update charts
- Loading branch information
Showing
3 changed files
with
48 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
--- | ||
name: "chart-update" | ||
|
||
on: | ||
schedule: | ||
- cron: "0 7 * * 1-5" | ||
|
||
workflow_dispatch: | ||
inputs: | ||
update-strategy: | ||
description: "Update strategy to use. Valid values are 'patch', 'minor' or 'major'" | ||
type: choice | ||
options: | ||
- "patch" | ||
- "minor" | ||
- "major" | ||
required: true | ||
excluded-dependencies: | ||
description: "Comma-separated list of dependencies to exclude from the update (i.e. 'dependency1,dependency2,dependency3')" | ||
type: string | ||
required: false | ||
default: "" | ||
dry-run: | ||
description: "Activate dry-run mode" | ||
type: boolean | ||
required: false | ||
default: true | ||
|
||
jobs: | ||
|
||
chart-update-schedule: | ||
if: ${{ github.event_name == 'schedule' }} | ||
strategy: | ||
matrix: | ||
update-strategy: ["major", "minor"] | ||
uses: camptocamp/devops-stack/.github/workflows/modules-chart-update.yaml@main | ||
with: | ||
update-strategy: ${{ matrix.update-strategy }} | ||
|
||
chart-update-manual: | ||
if: ${{ github.event_name == 'workflow_dispatch' }} | ||
uses: camptocamp/devops-stack/.github/workflows/modules-chart-update.yaml@main | ||
with: | ||
update-strategy: ${{ inputs.update-strategy }} | ||
excluded-dependencies: ${{ inputs.excluded-dependencies }} | ||
dry-run: ${{ inputs.dry-run }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters