From e16c27b7571507925faeeea6d78e7b7f93bf97f6 Mon Sep 17 00:00:00 2001 From: Bartlomiej Gmerek Date: Tue, 26 Nov 2024 14:21:47 +0100 Subject: [PATCH] Creates v1.5 release branch --- .github/renovate.json5 | 36 ------------------------------ .github/workflows/issues.yaml | 11 --------- .github/workflows/lint-pr.yaml | 20 ----------------- .github/workflows/main.yaml | 23 +++---------------- .github/workflows/promote.yaml | 29 ------------------------ .github/workflows/update-libs.yaml | 15 ------------- 6 files changed, 3 insertions(+), 131 deletions(-) delete mode 100644 .github/renovate.json5 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/renovate.json5 b/.github/renovate.json5 deleted file mode 100644 index 18ee18c..0000000 --- a/.github/renovate.json5 +++ /dev/null @@ -1,36 +0,0 @@ -{ - "$schema": "https://docs.renovatebot.com/renovate-schema.json", - "extends": [ - "config:recommended", - ":disableRateLimiting", - ":noUnscheduledUpdates", - ":semanticCommits" - ], - "automerge": true, - "automergeStrategy": "squash", - "automergeType": "pr", - "platformAutomerge": true, - "schedule": ["after 1am and before 3am every monday"], - "lockFileMaintenance": { - "enabled": true, - "schedule": ["after 1am and before 3am every wednesday"] - }, - "timezone": "Etc/UTC", - "enabledManagers": ["pep621", "github-actions", "terraform"], - "packageRules": [ - // Later rules override earlier rules - { - "matchManagers": ["pep621"], - "rangeStrategy": "bump", - "groupName": "Python dependencies" - }, - { - "matchManagers": ["github-actions"], - "groupName": "GitHub actions" - }, - { - "matchManagers": ["terraform"], - "groupName": "Terraform" - }, - ], -} diff --git a/.github/workflows/issues.yaml b/.github/workflows/issues.yaml deleted file mode 100644 index aeac369..0000000 --- a/.github/workflows/issues.yaml +++ /dev/null @@ -1,11 +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: inherit diff --git a/.github/workflows/lint-pr.yaml b/.github/workflows/lint-pr.yaml deleted file mode 100644 index d54e174..0000000 --- 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 0d11c42..6ae5073 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -1,12 +1,10 @@ -name: Main branch CI +name: Release 1.5 CI on: pull_request: branches: - - main + - v1.5 push: - schedule: - - cron: "0 1 * * 0" jobs: codeql: @@ -50,24 +48,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 }} diff --git a/.github/workflows/promote.yaml b/.github/workflows/promote.yaml deleted file mode 100644 index 154de34..0000000 --- a/.github/workflows/promote.yaml +++ /dev/null @@ -1,29 +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 d260d21..0000000 --- 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