From 0357cb5cc76344f8046f4b6fcddcc84e505e9bc0 Mon Sep 17 00:00:00 2001 From: Yanks Yoon <37652070+yanksyoon@users.noreply.github.com> Date: Wed, 19 Jul 2023 17:26:19 +0800 Subject: [PATCH] feat: add all workflows from operator-workflows (#14) --- .github/workflows/auto_update_libs.yaml | 10 ++++++++++ .github/workflows/promote_charm.yaml | 26 +++++++++++++++++++++++++ .github/workflows/publish_charm.yaml | 13 +++++++++++++ 3 files changed, 49 insertions(+) create mode 100644 .github/workflows/auto_update_libs.yaml create mode 100644 .github/workflows/promote_charm.yaml create mode 100644 .github/workflows/publish_charm.yaml diff --git a/.github/workflows/auto_update_libs.yaml b/.github/workflows/auto_update_libs.yaml new file mode 100644 index 00000000..02b7b204 --- /dev/null +++ b/.github/workflows/auto_update_libs.yaml @@ -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 diff --git a/.github/workflows/promote_charm.yaml b/.github/workflows/promote_charm.yaml new file mode 100644 index 00000000..8a305b0f --- /dev/null +++ b/.github/workflows/promote_charm.yaml @@ -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 diff --git a/.github/workflows/publish_charm.yaml b/.github/workflows/publish_charm.yaml new file mode 100644 index 00000000..c6e1c3d4 --- /dev/null +++ b/.github/workflows/publish_charm.yaml @@ -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