From 626a8f366afb9f3ed4c9958b88ce3a659157d91d Mon Sep 17 00:00:00 2001 From: Will Fitch Date: Fri, 18 Nov 2022 13:05:24 +0000 Subject: [PATCH] Fix Release Pipeline (#38) # PR ## Proposal Update pipeline runner to jammy so charmcraft can build the charm. ## Context Currently, the charm [can't be released](https://github.com/canonical/pgbouncer-operator/actions/runs/3487511396/jobs/5838224654) because there's no good base on which to build the charm. Building a charm on jammy seems to require a jammy substrate, so I've updated the CI to use 22.04 ## Testing - I've tested this locally, and I'm currently testing building and running a jammy charm in a 20.04 VM. - I'm struggling on how to verify the release action locally, so if anyone has any ideas I'd appreciate it :) ## Commits * updated pipeline runner to jammy * updated build and run lxd versions * reverted build to 22.04 --- .github/workflows/ci.yaml | 12 ++++++------ .github/workflows/release.yaml | 6 +++--- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 958af71af..d0b31bb67 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -6,7 +6,7 @@ on: jobs: lint: name: Lint - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - name: Checkout uses: actions/checkout@v3 @@ -17,7 +17,7 @@ jobs: unit-test: name: Unit tests - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - name: Checkout uses: actions/checkout@v3 @@ -31,7 +31,7 @@ jobs: needs: - lint - unit-test - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - name: Checkout uses: actions/checkout@v3 @@ -48,7 +48,7 @@ jobs: needs: - lint - unit-test - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - name: Checkout uses: actions/checkout@v3 @@ -65,7 +65,7 @@ jobs: needs: - lint - unit-test - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - name: Checkout uses: actions/checkout@v3 @@ -83,7 +83,7 @@ jobs: needs: - lint - unit-test - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - name: Checkout uses: actions/checkout@v3 diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 2f68a4f87..75ddc37b4 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -8,7 +8,7 @@ on: jobs: lib-check: name: Check libraries - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - name: Checkout uses: actions/checkout@v3 @@ -30,10 +30,10 @@ jobs: needs: - lib-check - ci - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 - name: Select charmhub channel