forked from finos/waltz-juju-bundle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes image / bundle publishing jobs
Dispatch create_release.yaml on a new release. The create_release.yaml action will create a new branch based on that release, create a commit which will update the bundle.yaml file to make the finos-waltz-k8s charm point towards that release, and push the new bundle to Charmhub. When there's a new Waltz image release, we do a charmcraft release specific for that version in Charmhub. We're manually packing and uploading the bundle instead of using the upload-bundle action because of an issue [1]. This will have to be updated later, when the issue is resolved. [1] canonical/charming-actions#40
- Loading branch information
1 parent
c3ff0a9
commit 91547ea
Showing
2 changed files
with
18 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,7 +36,7 @@ jobs: | |
# and apply it over the bundle.yaml file. | ||
echo "applications:" > overlay.yaml | ||
echo " finos-waltz:" >> overlay.yaml | ||
echo " channel: ${{ steps.release-short.outputs.short_version }}" }}/edge" >> overlay.yaml | ||
echo " channel: ${{ steps.release-short.outputs.short_version }}/edge" >> overlay.yaml | ||
# We can't have bundle.yaml as both the source and destionation, the result will not be | ||
# as we would have wanted it. | ||
|
@@ -73,8 +73,13 @@ jobs: | |
new_branch: "release-${{ github.event.inputs.release }}" | ||
|
||
- name: Upload bundle to edge | ||
uses: canonical/charming-actions/[email protected] | ||
with: | ||
credentials: "${{ secrets.CHARMCRAFT_AUTH }}" | ||
github-token: "${{ secrets.GITHUB_TOKEN }}" | ||
channel: "${{ steps.release-short.outputs.short_version }}/edge" | ||
# TODO: replace with canonical/charming-actions/upload-bundle once the following issue | ||
# is resolved: https://github.com/canonical/charming-actions/issues/40 | ||
env: | ||
CHARMCRAFT_AUTH: "${{ secrets.CHARMCRAFT_AUTH }}" | ||
run: | | ||
charmcraft pack | ||
charmcraft upload finos-waltz-bundle.zip | ||
# Get the last revision number and image revision number and release. | ||
bundle_rev=$(charmcraft revisions finos-waltz-bundle | awk 'FNR == 2 {print $1}') | ||
charmcraft release finos-waltz-bundle --revision=${bundle_rev} --channel="${{ steps.release-short.outputs.short_version }}/edge" |
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