From 99a59a970e059122ed83faf9b342b4a40e6a83a4 Mon Sep 17 00:00:00 2001 From: Bartlomiej Gmerek Date: Mon, 25 Nov 2024 12:11:35 +0100 Subject: [PATCH] Creates v1.5 release branch --- .github/dependabot.yml | 34 -------------- .github/workflows/dependabot_pr.yaml | 14 ------ .github/workflows/issues.yaml | 12 ----- .github/workflows/lint-pr.yaml | 20 --------- .github/workflows/main.yaml | 67 +--------------------------- .github/workflows/promote.yaml | 28 ------------ .github/workflows/update-libs.yaml | 15 ------- 7 files changed, 2 insertions(+), 188 deletions(-) delete mode 100644 .github/dependabot.yml delete mode 100644 .github/workflows/dependabot_pr.yaml delete mode 100644 .github/workflows/issues.yaml delete mode 100644 .github/workflows/lint-pr.yaml delete mode 100644 .github/workflows/promote.yaml delete mode 100644 .github/workflows/update-libs.yaml diff --git a/.github/dependabot.yml b/.github/dependabot.yml deleted file mode 100644 index 4d2f8f89..00000000 --- a/.github/dependabot.yml +++ /dev/null @@ -1,34 +0,0 @@ -version: 2 -updates: - - package-ecosystem: "github-actions" - directory: "/" - schedule: - interval: "weekly" - commit-message: - prefix: "chore: " - groups: - github_actions: - patterns: - - "*" - - - package-ecosystem: "pip" - directory: "/" - schedule: - interval: "weekly" - commit-message: - prefix: "chore: " - groups: - pip_dependencies: - patterns: - - "*" - - - package-ecosystem: "terraform" - directory: "/terraform/" - schedule: - interval: "weekly" - commit-message: - prefix: "chore: " - groups: - terraform_modules: - patterns: - - "*" diff --git a/.github/workflows/dependabot_pr.yaml b/.github/workflows/dependabot_pr.yaml deleted file mode 100644 index 16954259..00000000 --- a/.github/workflows/dependabot_pr.yaml +++ /dev/null @@ -1,14 +0,0 @@ -name: "Dependabot Auto Approve and Merge" - -on: - pull_request: - branches: - - main - -permissions: - pull-requests: write - contents: write - -jobs: - auto-merge: - uses: canonical/sdcore-github-workflows/.github/workflows/dependabot_pr.yaml@v2.2.0 diff --git a/.github/workflows/issues.yaml b/.github/workflows/issues.yaml deleted file mode 100644 index 3ec0d15f..00000000 --- a/.github/workflows/issues.yaml +++ /dev/null @@ -1,12 +0,0 @@ -name: Sync Issues to JIRA - -on: - issues: - types: [opened, reopened, closed] - -jobs: - update: - name: Update Issue - uses: canonical/sdcore-github-workflows/.github/workflows/issues.yaml@v2.2.0 - secrets: - JIRA_URL: ${{ secrets.JIRA_URL }} diff --git a/.github/workflows/lint-pr.yaml b/.github/workflows/lint-pr.yaml deleted file mode 100644 index d54e1749..00000000 --- a/.github/workflows/lint-pr.yaml +++ /dev/null @@ -1,20 +0,0 @@ -name: "Lint PR" - -on: - pull_request_target: - types: - - opened - - edited - - synchronize - -permissions: - pull-requests: read - -jobs: - main: - name: Validate PR title - runs-on: ubuntu-latest - steps: - - uses: amannn/action-semantic-pull-request@v5 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index a8354eb5..e6fdf5b1 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -1,4 +1,4 @@ -name: Main branch CI +name: Release 1.5 CI on: pull_request: @@ -50,72 +50,9 @@ jobs: - static-analysis - unit-tests-with-coverage - integration-test - if: ${{ github.ref_name == 'main' }} + if: ${{ github.ref_name == 'v1.5' }} uses: canonical/sdcore-github-workflows/.github/workflows/publish-charm.yaml@v2.2.0 with: track-name: 1.5 secrets: CHARMCRAFT_AUTH: ${{ secrets.CHARMCRAFT_AUTH }} - - publish-charm-on-push: - name: Publish Developer Charm To Branch - needs: - - lint-report - - static-analysis - - unit-tests-with-coverage - - integration-test - if: ${{ (github.ref_name != 'main') && (github.event_name == 'push') }} - uses: canonical/sdcore-github-workflows/.github/workflows/publish-charm.yaml@v2.2.0 - with: - branch-name: ${{ github.ref_name }} - track-name: 1.5 - secrets: - CHARMCRAFT_AUTH: ${{ secrets.CHARMCRAFT_AUTH }} - - fiveg-n3-lib-needs-publishing: - runs-on: ubuntu-22.04 - outputs: - needs-publishing: ${{ steps.changes.outputs.fiveg_n3 }} - steps: - - uses: actions/checkout@v4 - - uses: dorny/paths-filter@v3 - id: changes - with: - filters: | - fiveg_n3: - - 'lib/charms/sdcore_upf_k8s/v0/fiveg_n3.py' - - publish-fiveg-n3-lib: - name: Publish Lib - needs: - - publish-charm - - fiveg-n3-lib-needs-publishing - if: ${{ github.ref_name == 'main' }} - uses: canonical/sdcore-github-workflows/.github/workflows/publish-lib.yaml@v2.2.0 - with: - lib-name: "charms.sdcore_upf_k8s.v0.fiveg_n3" - secrets: inherit - - fiveg-n4-lib-needs-publishing: - runs-on: ubuntu-22.04 - outputs: - needs-publishing: ${{ steps.changes.outputs.fiveg_n4 }} - steps: - - uses: actions/checkout@v4 - - uses: dorny/paths-filter@v3 - id: changes - with: - filters: | - fiveg_n4: - - 'lib/charms/sdcore_upf_k8s/v0/fiveg_n4.py' - - publish-fiveg-n4-lib: - name: Publish Lib - needs: - - publish-charm - - fiveg-n4-lib-needs-publishing - if: ${{ github.ref_name == 'main' }} - uses: canonical/sdcore-github-workflows/.github/workflows/publish-lib.yaml@v2.2.0 - with: - lib-name: "charms.sdcore_upf_k8s.v0.fiveg_n4" - secrets: inherit diff --git a/.github/workflows/promote.yaml b/.github/workflows/promote.yaml deleted file mode 100644 index 570c70ba..00000000 --- a/.github/workflows/promote.yaml +++ /dev/null @@ -1,28 +0,0 @@ -name: Promote Charm - -on: - workflow_dispatch: - inputs: - promotion: - type: choice - description: Channel to promote from - options: - - edge -> beta - - beta -> candidate - - candidate -> stable - track-name: - type: choice - description: Name of the charmhub track to publish - options: - - '1.5' - - latest - - -jobs: - promote: - name: Promote Charm - uses: canonical/sdcore-github-workflows/.github/workflows/promote.yaml@v2.2.0 - with: - promotion: ${{ github.event.inputs.promotion }} - track-name: ${{ github.event.inputs.track-name }} - secrets: inherit diff --git a/.github/workflows/update-libs.yaml b/.github/workflows/update-libs.yaml deleted file mode 100644 index d260d215..00000000 --- a/.github/workflows/update-libs.yaml +++ /dev/null @@ -1,15 +0,0 @@ -name: Auto-update Charm Libraries -on: - workflow_dispatch: - schedule: - - cron: "0 0,12 * * *" - -permissions: - contents: write - pull-requests: write - -jobs: - update-lib: - name: Check libraries - uses: canonical/sdcore-github-workflows/.github/workflows/update-libs.yaml@v2.2.0 - secrets: inherit