-
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.
This is to work with the new centrally managed workflow templates.
- Loading branch information
1 parent
7bff4ec
commit 738f1d4
Showing
26 changed files
with
219 additions
and
158 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
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 |
---|---|---|
@@ -1,25 +1,40 @@ | ||
name: Promote charm to other tracks and channels | ||
# This file is centrally managed as a template file in https://github.com/canonical/solutions-engineering-automation | ||
# To update the file: | ||
# - Edit it in the canonical/solutions-engineering-automation repository. | ||
# - Open a PR with the changes. | ||
# - When the PR merges, the soleng-terraform bot will open a PR to the target repositories with the changes. | ||
name: Promote charm to default track, standard risk levels. | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
destination-channel: | ||
description: 'Destination Channel, e.g. latest/candidate' | ||
required: true | ||
origin-channel: | ||
description: 'Origin Channel, e.g. latest/edge' | ||
channel-promotion: | ||
description: 'Channel Promotion, e.g. latest/edge -> latest/candidate' | ||
required: true | ||
type: choice | ||
options: | ||
- 'latest/edge -> latest/candidate' | ||
- 'latest/candidate -> latest/stable' | ||
|
||
jobs: | ||
promote-charm: | ||
name: Promote charm | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set channels | ||
id: set-channels | ||
run: | | ||
channel_promotion="${{ github.event.inputs.channel-promotion }}" | ||
origin=$(echo "$channel_promotion" | sed 's/\s*->.*//') | ||
destination=$(echo "$channel_promotion" | sed 's/.*->\s*//') | ||
echo "destination-channel=$destination" >> $GITHUB_OUTPUT | ||
echo "origin-channel=$origin" >> $GITHUB_OUTPUT | ||
- name: Release charm to channel | ||
uses: canonical/charming-actions/release-charm@2.4.0 | ||
uses: canonical/charming-actions/release-charm@2.6.2 | ||
with: | ||
credentials: ${{ secrets.CHARMHUB_TOKEN }} | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
destination-channel: ${{ github.event.inputs.destination-channel }} | ||
origin-channel: ${{ github.event.inputs.origin-channel }} | ||
destination-channel: ${{ steps.set-channels.outputs.destination-channel }} | ||
origin-channel: ${{ steps.set-channels.outputs.origin-channel }} | ||
charmcraft-channel: "2.x/stable" |
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 |
---|---|---|
@@ -1,3 +1,8 @@ | ||
# This file is centrally managed as a template file in https://github.com/canonical/solutions-engineering-automation | ||
# To update the file: | ||
# - Edit it in the canonical/solutions-engineering-automation repository. | ||
# - Open a PR with the changes. | ||
# - When the PR merges, the soleng-terraform bot will open a PR to the target repositories with the changes. | ||
name: Release to Edge | ||
|
||
on: | ||
|
@@ -13,17 +18,26 @@ jobs: | |
|
||
release: | ||
needs: check | ||
runs-on: ubuntu-latest | ||
runs-on: ${{ matrix.runs-on }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
runs-on: [[ubuntu-22.04]] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
|
||
- name: Initialize lxd # This should dropped once it's implemented on charming-actions itself. https://github.com/canonical/charming-actions/issues/140 | ||
uses: canonical/[email protected] | ||
- name: Upload charm to charmhub | ||
uses: canonical/charming-actions/[email protected] | ||
# revision is latest main at time of writing; using because it contains a fix to https://github.com/canonical/setup-lxd/issues/19 | ||
uses: canonical/setup-lxd@2aa6f7caf7d1484298a64192f7f63a6684e648a4 | ||
|
||
- name: Pack and upload to charmhub | ||
uses: canonical/charming-actions/[email protected] | ||
with: | ||
charmcraft-channel: "2.x/stable" | ||
credentials: "${{ secrets.CHARMHUB_TOKEN }}" | ||
github-token: "${{ secrets.GITHUB_TOKEN }}" | ||
channel: "latest/edge" | ||
# Note(rgildein): Right now we are not using destructive-mode, since our charmcraft.yaml is designed with a single build-on and the ability to run-on multiple bases. Running with destructive-mode would require aligning the base defined in this job with the one defined in charmcraft.yaml (build-on). | ||
# Ensure the charm is built in an isolated environment and on the correct base in an lxd container. | ||
destructive-mode: false |
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
This file was deleted.
Oops, something went wrong.
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,24 @@ | ||
name: prometheus-blackbox-exporter | ||
summary: Blackbox exporter for Prometheus | ||
maintainer: Llama (LMA) Charmers <[email protected]> | ||
description: | | ||
The blackbox exporter allows blackbox probing of | ||
endpoints over HTTP, HTTPS, DNS, TCP and ICMP. | ||
tags: | ||
- monitoring | ||
series: [] | ||
subordinate: false | ||
provides: | ||
blackbox-exporter: | ||
interface: http | ||
nrpe-external-master: | ||
interface: nrpe-external-master | ||
scope: container | ||
dashboards: | ||
interface: grafana-dashboard | ||
resources: | ||
dashboards: | ||
type: file | ||
filename: grafana-dashboards.zip | ||
description: | ||
Zip file to provide grafana dashboards |
File renamed without changes.
Oops, something went wrong.