Skip to content

Commit

Permalink
refactor workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Vikaspogu committed Oct 1, 2024
1 parent 3eec0c3 commit 04ec023
Show file tree
Hide file tree
Showing 20 changed files with 296 additions and 799 deletions.
14 changes: 2 additions & 12 deletions .github/labeler.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
---
# Area
area/ansible:
area/bootstrap:
- changed-files:
- any-glob-to-any-file: ansible/**/*
area/docs:
- changed-files:
- any-glob-to-any-file: docs/**/*
- any-glob-to-any-file: README.md
- any-glob-to-any-file: bootstrap/**/*
area/github:
- changed-files:
- any-glob-to-any-file: .github/**/*
Expand All @@ -17,8 +12,3 @@ area/taskfile:
- changed-files:
- any-glob-to-any-file: .taskfiles/**/*
- any-glob-to-any-file: Taskfile*
# Cluster
cluster:
- changed-files:
- any-glob-to-any-file: ansible/**/*
- any-glob-to-any-file: kubernetes/**/*
64 changes: 18 additions & 46 deletions .github/labels.yaml
Original file line number Diff line number Diff line change
@@ -1,48 +1,20 @@
---
# Areas
- name: area/ansible
color: "0e8a16"
- name: area/docs
color: "0e8a16"
- name: area/github
color: "0e8a16"
- name: area/kubernetes
color: "0e8a16"
- name: area/taskfile
color: "0e8a16"
- name: area/terraform
color: "0e8a16"
# Clusters
- name: cluster/main
color: "ffc300"
- name: cluster/storage
color: "ffc300"
# Renovate Types
- name: renovate/ansible
color: "027fa0"
- name: renovate/container
color: "027fa0"
- name: renovate/github-action
color: "027fa0"
- name: renovate/grafana-dashboard
color: "027fa0"
- name: renovate/github-release
color: "027fa0"
- name: renovate/helm
color: "027fa0"
- name: renovate/terraform
color: "027fa0"
# Semantic Types
- name: type/digest
color: "ffeC19"
- name: type/patch
color: "ffeC19"
- name: type/minor
color: "ff9800"
- name: type/major
color: "f6412d"
# Area
- { name: "area/bootstrap", color: "0e8a16" }
- { name: "area/github", color: "0e8a16" }
- { name: "area/kubernetes", color: "0e8a16" }
- { name: "area/taskfile", color: "0e8a16" }
# Distro
- { name: "distro/talos", color: "ffc300" }
# Renovate
- { name: "renovate/container", color: "027fa0" }
- { name: "renovate/github-action", color: "027fa0" }
- { name: "renovate/github-release", color: "027fa0" }
- { name: "renovate/helm", color: "027fa0" }
# Semantic Type
- { name: "type/patch", color: "ffec19" }
- { name: "type/minor", color: "ff9800" }
- { name: "type/major", color: "f6412d" }
- { name: "type/break", color: "f6412d" }
# Uncategorized
- name: hold/upstream
color: "ee0701"
- name: lint/lychee
color: "201e39"
- { name: "hold/upstream", color: "ee0701" }
5 changes: 0 additions & 5 deletions .github/release.yaml

This file was deleted.

220 changes: 185 additions & 35 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -3,51 +3,201 @@
"extends": [
"config:recommended",
"docker:enableMajor",
"replacements:k8s-registry-move",
":automergeBranch",
":disableRateLimiting",
":dependencyDashboard",
":semanticCommits",
":skipStatusChecks",
":timezone(America/New_York)",
"github>vikaspogu/k8s-gitops//.github/renovate/allowedVersions.json5",
"github>vikaspogu/k8s-gitops//.github/renovate/autoMerge.json5",
"github>vikaspogu/k8s-gitops//.github/renovate/clusters.json5",
"github>vikaspogu/k8s-gitops//.github/renovate/commitMessage.json5",
"github>vikaspogu/k8s-gitops//.github/renovate/customManagers.json5",
"github>vikaspogu/k8s-gitops//.github/renovate/grafanaDashboards.json5",
"github>vikaspogu/k8s-gitops//.github/renovate/groups.json5",
"github>vikaspogu/k8s-gitops//.github/renovate/labels.json5",
"github>vikaspogu/k8s-gitops//.github/renovate/packageRules.json5",
"github>vikaspogu/k8s-gitops//.github/renovate/semanticCommits.json5"
":automergeBranch"
],
"onboarding": false,
"requireConfig": "optional",
"dependencyDashboard": true,
"dependencyDashboardTitle": "Renovate Dashboard 🤖",
"suppressNotifications": ["prEditedNotification", "prIgnoreNotification"],
"rebaseWhen": "conflicted",
"assigneesFromCodeOwners": true,
"reviewersFromCodeOwners": true,
"ignorePaths": [
"**/*.sops.*",
"**/.archive/**",
"**/resources/**"
],
"schedule": ["every weekend"],
"ignorePaths": ["**/*.sops.*"],
"flux": {
"fileMatch": [
"(^|/)kubernetes/.+\\.ya?ml(\\.j2)?$"
]
"fileMatch": ["(^|/)kubernetes/.+\\.ya?ml(?:\\.j2)?$"]
},
"helm-values": {
"fileMatch": [
"(^|/)kubernetes/.+\\.ya?ml(\\.j2)?$"
]
"fileMatch": ["(^|/)kubernetes/.+\\.ya?ml(?:\\.j2)?$"]
},
"helmfile": {
"fileMatch": ["(^|/)helmfile\\.ya?ml(?:\\.j2)?$"]
},
"kubernetes": {
"fileMatch": [
"(^|/)\\.taskfiles/.+\\.ya?ml(\\.j2)?$",
"(^|/)ansible/.+\\.ya?ml(\\.j2)?$",
"(^|/)kubernetes/.+\\.ya?ml(\\.j2)?$"
]
}
"fileMatch": ["(^|/)kubernetes/.+\\.ya?ml(?:\\.j2)?$"]
},
"kustomize": {
"fileMatch": ["(^|/)kustomization\\.ya?ml(?:\\.j2)?$"]
},
"pip_requirements": {
"fileMatch": ["(^|/)[\\w-]*requirements(-\\w+)?\\.(txt|pip)(?:\\.j2)?$"]
},
// commit message topics
"commitMessageTopic": "{{depName}}",
"commitMessageExtra": "to {{newVersion}}",
"commitMessageSuffix": "",
// package rules
"packageRules": [
// automerge
{
"description": ["Auto merge Github Actions"],
"matchManagers": ["github-actions"],
"automerge": true,
"automergeType": "branch",
"ignoreTests": true,
"matchUpdateTypes": ["minor", "patch"]
},
// groups
{
"description": ["Flux Group"],
"groupName": "Flux",
"matchPackagePatterns": ["fluxcd"],
"matchDatasources": ["docker", "github-tags"],
"versioning": "semver",
"group": {
"commitMessageTopic": "{{{groupName}}} group"
},
"separateMinorPatch": true
},
{
"description": ["Talos Group"],
"groupName": "Talos",
"matchPackagePatterns": [
"siderolabs/talosctl",
"siderolabs/installer"
],
"matchDatasources": ["docker"],
"group": {
"commitMessageTopic": "{{{groupName}}} group"
},
"separateMinorPatch": true
},
// commit message topics
{
"matchDatasources": ["helm"],
"commitMessageTopic": "chart {{depName}}"
},
{
"matchDatasources": ["docker"],
"commitMessageTopic": "image {{depName}}"
},
// commit messages
{
"matchDatasources": ["docker"],
"matchUpdateTypes": ["major"],
"commitMessagePrefix": "feat(container)!: "
},
{
"matchDatasources": ["docker"],
"matchUpdateTypes": ["minor"],
"semanticCommitType": "feat",
"semanticCommitScope": "container"
},
{
"matchDatasources": ["docker"],
"matchUpdateTypes": ["patch"],
"semanticCommitType": "fix",
"semanticCommitScope": "container"
},
{
"matchDatasources": ["docker"],
"matchUpdateTypes": ["digest"],
"semanticCommitType": "chore",
"semanticCommitScope": "container"
},
{
"matchDatasources": ["helm"],
"matchUpdateTypes": ["major"],
"commitMessagePrefix": "feat(helm)!: "
},
{
"matchDatasources": ["helm"],
"matchUpdateTypes": ["minor"],
"semanticCommitType": "feat",
"semanticCommitScope": "helm"
},
{
"matchDatasources": ["helm"],
"matchUpdateTypes": ["patch"],
"semanticCommitType": "fix",
"semanticCommitScope": "helm"
},
{
"matchDatasources": ["github-releases", "github-tags"],
"matchUpdateTypes": ["major"],
"commitMessagePrefix": "feat(github-release)!: "
},
{
"matchDatasources": ["github-releases", "github-tags"],
"matchUpdateTypes": ["minor"],
"semanticCommitType": "feat",
"semanticCommitScope": "github-release"
},
{
"matchDatasources": ["github-releases", "github-tags"],
"matchUpdateTypes": ["patch"],
"semanticCommitType": "fix",
"semanticCommitScope": "github-release"
},
{
"matchManagers": ["github-actions"],
"matchUpdateTypes": ["major"],
"commitMessagePrefix": "feat(github-action)!: "
},
{
"matchManagers": ["github-actions"],
"matchUpdateTypes": ["minor"],
"semanticCommitType": "feat",
"semanticCommitScope": "github-action"
},
{
"matchManagers": ["github-actions"],
"matchUpdateTypes": ["patch"],
"semanticCommitType": "fix",
"semanticCommitScope": "github-action"
},
// labels
{
"matchUpdateTypes": ["major"],
"labels": ["type/major"]
},
{
"matchUpdateTypes": ["minor"],
"labels": ["type/minor"]
},
{
"matchUpdateTypes": ["patch"],
"labels": ["type/patch"]
},
{
"matchDatasources": ["docker"],
"addLabels": ["renovate/container"]
},
{
"matchDatasources": ["helm"],
"addLabels": ["renovate/helm"]
},
{
"matchDatasources": ["github-releases", "github-tags"],
"addLabels": ["renovate/github-release"]
},
{
"matchManagers": ["github-actions"],
"addLabels": ["renovate/github-action"]
}
],
// custom managers
"customManagers": [
{
"customType": "regex",
"description": ["Process custom dependencies"],
"fileMatch": ["(^|/)kubernetes/.+\\.ya?ml(?:\\.j2)?$"],
"matchStrings": [
// # renovate: datasource=helm depName=cilium repository=https://helm.cilium.io
// version: 1.15.1
"datasource=(?<datasource>\\S+) depName=(?<depName>\\S+)( repository=(?<registryUrl>\\S+))?\\n.+: (&\\S+\\s)?(?<currentValue>\\S+)"
],
"datasourceTemplate": "{{#if datasource}}{{{datasource}}}{{else}}github-releases{{/if}}"
}
]
}
15 changes: 0 additions & 15 deletions .github/renovate/allowedVersions.json5

This file was deleted.

21 changes: 0 additions & 21 deletions .github/renovate/autoMerge.json5

This file was deleted.

13 changes: 0 additions & 13 deletions .github/renovate/clusters.json5

This file was deleted.

Loading

0 comments on commit 04ec023

Please sign in to comment.