From fc89c77713fa873c45015ea4a994eb59b3aa1555 Mon Sep 17 00:00:00 2001 From: barco Date: Tue, 19 Nov 2024 11:37:01 +0100 Subject: [PATCH] ci: fix charm publish action for Ubuntu 24.04 --- .github/workflows/publish.yaml | 6 ++++++ charmcraft.yaml | 10 +++------- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index d0848ea1..33ab0f75 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -50,9 +50,15 @@ jobs: echo "setting output of destination_channel=$destination_channel" echo "::set-output name=destination_channel::$destination_channel" + - name: Setup lxd + uses: canonical/setup-lxd@v0.1.2 + with: + channel: latest/stable + - name: Upload charm to CharmHub uses: canonical/charming-actions/upload-charm@46fe0c6d63324b5f74ce0e65d6ab47051953cc48 # 2.6.2 with: credentials: ${{ secrets.CHARMCRAFT_CREDENTIALS }} github-token: ${{ secrets.GITHUB_TOKEN }} channel: ${{ steps.parse-inputs.outputs.destination_channel }} + destructive-mode: false \ No newline at end of file diff --git a/charmcraft.yaml b/charmcraft.yaml index 0600d2c0..0b6e10cf 100644 --- a/charmcraft.yaml +++ b/charmcraft.yaml @@ -89,13 +89,9 @@ config: type: boolean -bases: - - build-on: - - name: ubuntu - channel: "22.04" - run-on: - - name: ubuntu - channel: "22.04" +base: ubuntu@22.04 +platforms: + amd64: parts: charm: