-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* build: refactor charmcraft.yaml to use st124 notation (#158) * build: refactor charmcraft.yaml to use st124 notation In order to be able to use the data-platform-workflows, specially to be compatible with charmcraft cache, the charmcraft.yaml files of all charms in this repository need to follow st124 notation. Fixes #154 * ci, refactor: use data-platform-workflows in on_pull/push workflows (#159) * ci, refactor: use data-platform-workflows in on_pull/push workflows This commit enables the usage of build_charm.yaml workflow, which allows independent and cached charm builds, making the CI more efficient and fast. This commit also refactors the tests and the integrate workflow to be able to use the charm artefacts generated by the build_charm.yaml workflow. In summary this change: 1. Uses build_charm.yaml in on_{pull&push}.yaml to enable individual cached builds 2. Refactors individual and repository level integration tests to be able to use charm artefacts besides building them 3. Modifies integrate.yaml to download the charm artefacts and uses them in the tox integrate command Fixes #155 * ci: replaces publish.yaml workflow with promote.yaml workflow (#161) * ci: replaces publish.yaml workflow with promote.yaml workflow The promote.yaml workflow replaces the old release workflow dispatch (previously known as release.yaml). This commit removes the publish.yaml workflow as the release process is all handled by a recently refactored release.yaml, and promoting charms is done in a simple workflow dispatch coming from promote.yaml. Fixes #157
- Loading branch information
Showing
17 changed files
with
756 additions
and
262 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,31 @@ | ||
# reusable workflow triggered manually | ||
name: Promote charm to other tracks and channels | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
destination-channel: | ||
description: 'Destination Channel' | ||
required: true | ||
origin-channel: | ||
description: 'Origin Channel' | ||
required: true | ||
charm-name: | ||
description: 'Charm subdirectory name' | ||
required: true | ||
|
||
jobs: | ||
promote-charm: | ||
name: Promote charm | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Release charm to channel | ||
uses: canonical/charming-actions/release-charm@2.6.2 | ||
with: | ||
credentials: ${{ secrets.CHARMCRAFT_CREDENTIALS }} | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
destination-channel: ${{ github.event.inputs.destination-channel }} | ||
origin-channel: ${{ github.event.inputs.origin-channel }} | ||
tag-prefix: ${{ github.event.inputs.charm-name }} | ||
charm-path: charms/${{ github.event.inputs.charm-name}} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.