-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: rewrite actions to the new monorepo
- Loading branch information
Showing
2 changed files
with
32 additions
and
8 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 |
---|---|---|
|
@@ -13,24 +13,48 @@ jobs: | |
uses: ./.github/workflows/ci.yaml | ||
|
||
release-to-charmhub: | ||
name: Release filesystem-client to Charmhub | ||
name: Release to Charmhub | ||
needs: | ||
- ci-tests | ||
runs-on: ubuntu-24.04 | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
charm: [filesystem-client, cephfs-server-proxy, nfs-server-proxy] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Select charmhub channel | ||
- name: Select Charmhub channel | ||
uses: canonical/charming-actions/[email protected] | ||
id: channel | ||
- name: Install Just | ||
uses: extractions/setup-just@v2 | ||
with: | ||
just-version: 1.38.0 | ||
- name: Install uv | ||
uses: astral-sh/setup-uv@v4 | ||
with: | ||
version: "0.5.8" | ||
- name: Install Charmcraft | ||
run: sudo snap install charmcraft --classic --channel latest/stable | ||
- name: Stage charm | ||
run: just repository stage ${{ matrix.charm }} --clean | ||
- name: Setup LXD | ||
uses: canonical/[email protected] | ||
with: | ||
channel: 5.21/stable | ||
- name: Release updated libraries to Charmhub | ||
uses: canonical/charming-actions/[email protected] | ||
with: | ||
credentials: "${{ secrets.CHARMCRAFT_AUTH }}" | ||
github-token: "${{ secrets.GITHUB_TOKEN }}" | ||
charm-path: "./_build/${{ matrix.charm }}" | ||
- name: Upload charm to Charmhub | ||
uses: canonical/charming-actions/[email protected] | ||
with: | ||
credentials: "${{ secrets.CHARMCRAFT_AUTH }}" | ||
github-token: "${{ secrets.GITHUB_TOKEN }}" | ||
channel: "${{ steps.channel.outputs.name }}" | ||
charm-path: "./_build/${{ matrix.charm }}" | ||
tag-prefix: "${{ matrix.charm }}" | ||
destructive-mode: false |