Skip to content

Commit

Permalink
feat: introduce a complete set of CI actions
Browse files Browse the repository at this point in the history
  • Loading branch information
skatsaounis committed Apr 3, 2024
1 parent a3dfdd6 commit a8e5c3a
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/promote.yaml
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
21 changes: 21 additions & 0 deletions .github/workflows/release.yaml
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
22 changes: 22 additions & 0 deletions .github/workflows/update-libs.yaml
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

0 comments on commit a8e5c3a

Please sign in to comment.