generated from canonical/is-charms-template-repo
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update many of the operator-workflow-actions (#156)
* Update many of the operator-workflow-actions * Use tip workflows for integration testing * Publish charms from the k8s integration tests * Prepare for multiarch charm builds
- Loading branch information
Showing
10 changed files
with
129 additions
and
37 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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
name: Provide approval for bot PRs | ||
|
||
on: | ||
pull_request: | ||
|
||
jobs: | ||
bot_pr_approval: | ||
uses: canonical/operator-workflows/.github/workflows/bot_pr_approval.yaml@main | ||
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
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
name: Comment on the pull request | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
branches: | ||
- 'track/**' | ||
|
||
jobs: | ||
comment-on-pr: | ||
uses: canonical/operator-workflows/.github/workflows/comment_contributing.yaml@main | ||
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,54 @@ | ||
# Copyright 2024 Canonical Ltd. | ||
# See LICENSE file for licensing details. | ||
|
||
name: Download Charm | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
charm-arch: | ||
type: string | ||
description: The charm architecture to download | ||
default: amd64 | ||
charm-base: | ||
type: string | ||
description: The charm base to download | ||
default: [email protected] | ||
charm-channel: | ||
type: string | ||
description: The charm channel to download | ||
default: latest/edge | ||
charm-name: | ||
type: string | ||
description: The charm name to download | ||
juju-channel: | ||
type: string | ||
description: Which juju client to use for pulling charms | ||
default: 3/stable | ||
runs-on: | ||
type: string | ||
description: Image runner for building the images | ||
default: [email protected] | ||
|
||
jobs: | ||
download-charms: | ||
name: Download Charms | ||
runs-on: ${{ inputs.runs-on }} | ||
env: | ||
CHARM_FILE: "${{ inputs.charm-name }}-${{ inputs.charm-channel }}-${{ inputs.charm-base }}-${{ inputs.charm-arch }}.charm" | ||
steps: | ||
- name: Install Juju | ||
run: | | ||
sudo snap install juju --channel ${{ inputs.juju-channel }} | ||
- name: Download charm | ||
run: | | ||
CHARM_FILE=${{ env.CHARM_FILE }} | ||
CHARM_FILE=${CHARM_FILE//\//-} # replace all slashes with dashes | ||
echo CHARM_FILE=${CHARM_FILE} >> $GITHUB_ENV # update GitHub ENV vars | ||
juju download ${{ inputs.charm-name }} --channel ${{ inputs.charm-channel }} --base ${{ inputs.charm-base }} --arch ${{ inputs.charm-arch }} - > ${{ env.CHARM_FILE }} | ||
- name: Upload charm artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: ${{ inputs.charm-name }}-charm | ||
path: ${{ env.CHARM_FILE }} | ||
if-no-files-found: error |
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
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