Skip to content

Commit

Permalink
feat: add all workflows from operator-workflows (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
yanksyoon authored Jul 19, 2023
1 parent bedf88b commit 0357cb5
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/auto_update_libs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: Auto-update charm libraries

on:
schedule:
- cron: "0 1 * * *"

jobs:
auto-update-libs:
uses: canonical/operator-workflows/.github/workflows/auto_update_charm_libs.yaml@main
secrets: inherit
26 changes: 26 additions & 0 deletions .github/workflows/promote_charm.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Promote charm

on:
workflow_dispatch:
inputs:
origin-channel:
type: choice
description: "Origin Channel"
options:
- latest/edge
destination-channel:
type: choice
description: "Destination Channel"
options:
- latest/stable
secrets:
CHARMHUB_TOKEN:
required: true

jobs:
promote-charm:
uses: canonical/operator-workflows/.github/workflows/promote_charm.yaml@main
with:
origin-channel: ${{ github.event.inputs.origin-channel }}
destination-channel: ${{ github.event.inputs.destination-channel }}
secrets: inherit
13 changes: 13 additions & 0 deletions .github/workflows/publish_charm.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Publish to edge

on:
push:
branches:
- main

jobs:
test-and-publish-charm:
uses: canonical/operator-workflows/.github/workflows/publish_charm.yaml@main
secrets: inherit
with:
channel: latest/edge

0 comments on commit 0357cb5

Please sign in to comment.