-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: introduce a complete set of CI actions
- Loading branch information
1 parent
a3dfdd6
commit a8e5c3a
Showing
3 changed files
with
70 additions
and
0 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,27 @@ | ||
name: Promote Charm | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
charm: | ||
type: choice | ||
description: Charm to promote | ||
options: | ||
- maas-region | ||
- maas-agent | ||
promotion: | ||
type: choice | ||
description: Channel to promote from | ||
options: | ||
- edge -> beta | ||
- beta -> candidate | ||
- candidate -> stable | ||
|
||
jobs: | ||
promote: | ||
name: Promote | ||
uses: canonical/observability/.github/workflows/charm-promote.yaml@main | ||
with: | ||
charm-path: ${{ github.event.inputs.charm }} | ||
promotion: ${{ github.event.inputs.promotion }} | ||
secrets: inherit |
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,21 @@ | ||
name: Release Charms to Edge and Publish Libraries | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
release-region: | ||
uses: canonical/observability/.github/workflows/charm-release.yaml@main | ||
secrets: inherit | ||
with: | ||
charm-path: maas-region | ||
provider: lxd | ||
|
||
release-agent: | ||
uses: canonical/observability/.github/workflows/charm-release.yaml@main | ||
secrets: inherit | ||
with: | ||
charm-path: maas-agent | ||
provider: lxd |
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,22 @@ | ||
name: Auto-update Charm Libraries | ||
on: | ||
# Manual trigger | ||
workflow_dispatch: | ||
# Check regularly the upstream every four hours | ||
schedule: | ||
- cron: "0 0,4,8,12,16,20 * * *" | ||
|
||
jobs: | ||
update-lib-region: | ||
name: Check libraries | ||
uses: canonical/observability/.github/workflows/charm-update-libs.yaml@main | ||
secrets: inherit | ||
with: | ||
charm-path: maas-region | ||
|
||
update-lib-agent: | ||
name: Check libraries | ||
uses: canonical/observability/.github/workflows/charm-update-libs.yaml@main | ||
secrets: inherit | ||
with: | ||
charm-path: maas-agent |