From 3e73815e6f0a8878eefb9bc6603492fceb89c239 Mon Sep 17 00:00:00 2001 From: Anil Vishnoi Date: Thu, 26 Sep 2024 23:31:00 -0700 Subject: [PATCH] Updated github workflows for the release branches/tags Signed-off-by: Anil Vishnoi --- .github/dependabot.yml | 74 +++++++++++++++++++++++++++++++++ .github/workflows/images.yml | 3 ++ .github/workflows/lint-jobs.yml | 8 +++- .github/workflows/lint-ui.yml | 8 +++- 4 files changed, 89 insertions(+), 4 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 97c4bbac..1476f875 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,5 +1,6 @@ version: 2 updates: + # Enable version updates for the following package ecosystems for master branch - package-ecosystem: "npm" directory: "/" schedule: @@ -68,6 +69,79 @@ updates: interval: "monthly" reviewers: - "instructlab/ui-maintainers" + target-branch: "main" labels: - "docker dependencies" + # Enable version updates for the following package ecosystems for release-1.0 branch + - package-ecosystem: "npm" + directory: "/" + schedule: + interval: "weekly" + reviewers: + - "instructlab/ui-maintainers" + allow: + - dependency-type: "production" + target-branch: "release-1.0" + labels: + - "npm dependencies" + - "frontend" + groups: + typescript-eslint: + patterns: + - "@typescript-eslint/*" + - typescript-eslint + update-types: + - "minor" + - "patch" + react: + patterns: + - react + - react-dom + update-types: + - "minor" + - "patch" + patternfly: + patterns: + - "@patternfly/*" + - patternfly + update-types: + - "minor" + - "patch" + typescript-libraries: + patterns: + - "@types/*" + update-types: + - "minor" + - "patch" + - package-ecosystem: "github-actions" + directory: "/.github/workflows" + schedule: + interval: "weekly" + reviewers: + - "instructlab/ui-maintainers" + target-branch: "release-1.0" + labels: + - "github-actions" + groups: + actions-deps: + patterns: + - "*" + - package-ecosystem: "gomod" + directory: "/pathservice" + schedule: + interval: "weekly" + reviewers: + - "instructlab/ui-maintainers" + target-branch: "release-1.0" + labels: + - "go dependencies" + - package-ecosystem: "docker" + directory: "/" + schedule: + interval: "monthly" + reviewers: + - "instructlab/ui-maintainers" + target-branch: "release-1.0" + labels: + - "docker dependencies" diff --git a/.github/workflows/images.yml b/.github/workflows/images.yml index de923091..bc6d1bf5 100644 --- a/.github/workflows/images.yml +++ b/.github/workflows/images.yml @@ -4,6 +4,9 @@ on: push: branches: - main + - release-1.0 + tags: + - v* env: GHCR_REGISTRY: ghcr.io diff --git a/.github/workflows/lint-jobs.yml b/.github/workflows/lint-jobs.yml index 924067a5..438ef313 100644 --- a/.github/workflows/lint-jobs.yml +++ b/.github/workflows/lint-jobs.yml @@ -2,9 +2,13 @@ name: linters on: push: - branches: ["main"] + branches: + - main + - release-1.0 pull_request: - branches: ["main"] + branches: + - main + - release-1.0 concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} diff --git a/.github/workflows/lint-ui.yml b/.github/workflows/lint-ui.yml index 32a9eccd..b8eaf6a5 100644 --- a/.github/workflows/lint-ui.yml +++ b/.github/workflows/lint-ui.yml @@ -2,13 +2,17 @@ name: UI lint on: push: - branches: ["main"] + branches: + - main + - release-1.0 paths: - '.github/workflows/lint-ui.yml' - '**/*' - '!**/*.md' pull_request: - branches: ["main"] + branches: + - main + - release-1.0 paths: - '.github/workflows/lint-ui.yml' - '**/*'