From 7cdffbe7167bfc9fb2bf206baa16890f48d5c900 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 25 Jul 2024 15:48:27 +0200 Subject: [PATCH 1/5] build(deps): bump the actions group across 1 directory with 2 updates (#1038) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/auto-codespell.yml | 4 ++-- .github/workflows/auto-gen-docs.yaml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/auto-codespell.yml b/.github/workflows/auto-codespell.yml index ef4aac50..cb3c144d 100644 --- a/.github/workflows/auto-codespell.yml +++ b/.github/workflows/auto-codespell.yml @@ -23,8 +23,8 @@ jobs: name: PreCommit runs-on: ubuntu-latest steps: - - uses: actions/setup-python@v5.1.0 - - uses: DeterminateSystems/nix-installer-action@v12 + - uses: actions/setup-python@v5.1.1 + - uses: DeterminateSystems/nix-installer-action@v13 with: diagnostic-endpoint: "" - uses: DeterminateSystems/magic-nix-cache-action@v7 diff --git a/.github/workflows/auto-gen-docs.yaml b/.github/workflows/auto-gen-docs.yaml index e88ba259..283f013a 100644 --- a/.github/workflows/auto-gen-docs.yaml +++ b/.github/workflows/auto-gen-docs.yaml @@ -33,7 +33,7 @@ jobs: runs-on: ubuntu-latest if: github.event_name == 'pull_request' || (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master') steps: - - uses: DeterminateSystems/nix-installer-action@v12 + - uses: DeterminateSystems/nix-installer-action@v13 with: diagnostic-endpoint: "" - uses: DeterminateSystems/magic-nix-cache-action@v7 @@ -68,7 +68,7 @@ jobs: runs-on: ubuntu-latest if: github.event_name == 'pull_request' || (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master') steps: - - uses: DeterminateSystems/nix-installer-action@v12 + - uses: DeterminateSystems/nix-installer-action@v13 with: diagnostic-endpoint: "" - uses: DeterminateSystems/magic-nix-cache-action@v7 From bb33b8ffa096fb7aa0cf430be20385cf53f373fc Mon Sep 17 00:00:00 2001 From: Benjamin Herbert <2254565+BenjaminHerbert@users.noreply.github.com> Date: Thu, 17 Oct 2024 12:03:21 +0200 Subject: [PATCH 2/5] Fix broken links on Jenkins API type docs (#1067) --- api/v1alpha2/jenkins_types.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/v1alpha2/jenkins_types.go b/api/v1alpha2/jenkins_types.go index 7ffed5a8..09332af4 100644 --- a/api/v1alpha2/jenkins_types.go +++ b/api/v1alpha2/jenkins_types.go @@ -14,7 +14,7 @@ type JenkinsSpec struct { Master JenkinsMaster `json:"master"` // SeedJobs defines list of Jenkins Seed Job configurations - // More info: https://jenkinsci.github.io/kubernetes-operator/docs/getting-started/latest/configuration#configure-seed-jobs-and-pipelines + // More info: https://jenkinsci.github.io/kubernetes-operator/docs/getting-started/latest/configuring-seed-jobs-and-pipelines/ // +optional SeedJobs []SeedJob `json:"seedJobs,omitempty"` @@ -46,12 +46,12 @@ type JenkinsSpec struct { SlaveService Service `json:"slaveService,omitempty"` // Backup defines configuration of Jenkins backup - // More info: https://jenkinsci.github.io/kubernetes-operator/docs/getting-started/latest/configure-backup-and-restore/ + // More info: https://jenkinsci.github.io/kubernetes-operator/docs/getting-started/latest/configuring-backup-and-restore/ // +optional Backup Backup `json:"backup,omitempty"` // Backup defines configuration of Jenkins backup restore - // More info: https://jenkinsci.github.io/kubernetes-operator/docs/getting-started/latest/configure-backup-and-restore/ + // More info: https://jenkinsci.github.io/kubernetes-operator/docs/getting-started/latest/configuring-backup-and-restore/ // +optional Restore Restore `json:"restore,omitempty"` From a4fa09b2edec87e5b1fa14d461f8c5ab03fc9263 Mon Sep 17 00:00:00 2001 From: Luigi Operoso <40476330+brokenpip3@users.noreply.github.com> Date: Mon, 21 Oct 2024 00:00:49 +0200 Subject: [PATCH 3/5] chore: plugins and lts version october update (#1070) --- .github/pull_request_template.md | 17 ----------------- CODEOWNERS | 1 + chart/jenkins-operator/README.md | 4 ++-- chart/jenkins-operator/values.yaml | 2 +- config.base.env | 2 +- pkg/constants/constants.go | 2 +- pkg/plugins/base_plugins.go | 12 ++++++------ test/bats/1-deploy.bats | 4 ++-- test/bats/2-deploy-with-more-options.bats | 4 ++-- test/bats/3-deploy-with-webhook.bats | 4 ++-- test/e2e/configuration_test.go | 12 ++++++------ test/e2e/test_utility.go | 2 +- test/helm/helm_test.go | 2 +- 13 files changed, 26 insertions(+), 42 deletions(-) create mode 100644 CODEOWNERS diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 41f47b6c..7cf4d95c 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -15,20 +15,3 @@ review them: - [ ] Commit messages follow [commit message best practices](https://github.com/jenkinsci/kubernetes-operator/blob/master/CONTRIBUTING.md#commit-messages) _See [the contribution guide](https://github.com/jenkinsci/kubernetes-operator/blob/master/CONTRIBUTING.md) for more details._ - - -## Reviewer Notes - -If API changes are included, additive changes must be approved by at least two [OWNERS](https://github.com/jenkinsci/kubernetes-operator/blob/master/OWNERS) and backwards incompatible changes must be approved by [more than 50% of the OWNERS](https://github.com/jenkinsci/kubernetes-operator/blob/master/OWNERS). - -# Release Notes - -``` -Describe any user facing changes here, or delete this block. - -Examples of user facing changes: -- API changes -- Bug fixes -- Any changes in behavior - -``` diff --git a/CODEOWNERS b/CODEOWNERS new file mode 100644 index 00000000..f305f300 --- /dev/null +++ b/CODEOWNERS @@ -0,0 +1 @@ +* @brokenpip3 diff --git a/chart/jenkins-operator/README.md b/chart/jenkins-operator/README.md index 04672664..fab26771 100644 --- a/chart/jenkins-operator/README.md +++ b/chart/jenkins-operator/README.md @@ -1,6 +1,6 @@ # jenkins-operator -![Version: 0.8.0](https://img.shields.io/badge/Version-0.8.0-informational?style=flat-square) ![AppVersion: 0.8.0](https://img.shields.io/badge/AppVersion-0.8.0-informational?style=flat-square) +![Version: 0.8.1](https://img.shields.io/badge/Version-0.8.1-informational?style=flat-square) ![AppVersion: 0.8.1](https://img.shields.io/badge/AppVersion-0.8.1-informational?style=flat-square) Kubernetes native operator which fully manages Jenkins on Kubernetes @@ -54,7 +54,7 @@ Kubernetes native operator which fully manages Jenkins on Kubernetes | jenkins.enabled | bool | `true` | | | jenkins.env | list | `[]` | | | jenkins.hostAliases | object | `{}` | | -| jenkins.image | string | `"jenkins/jenkins:2.452.2-lts"` | | +| jenkins.image | string | `"jenkins/jenkins:2.462.3-lts"` | | | jenkins.imagePullPolicy | string | `"Always"` | | | jenkins.imagePullSecrets | list | `[]` | | | jenkins.labels | object | `{}` | | diff --git a/chart/jenkins-operator/values.yaml b/chart/jenkins-operator/values.yaml index a17dc884..c2a1cdd1 100644 --- a/chart/jenkins-operator/values.yaml +++ b/chart/jenkins-operator/values.yaml @@ -36,7 +36,7 @@ jenkins: # image is the name (and tag) of the Jenkins instance # Default: jenkins/jenkins:lts # It's recommended to use LTS (tag: "lts") version - image: jenkins/jenkins:2.452.2-lts + image: jenkins/jenkins:2.462.3-lts # env contains jenkins container environment variables env: [] diff --git a/config.base.env b/config.base.env index f535e8bb..a5635414 100644 --- a/config.base.env +++ b/config.base.env @@ -7,7 +7,7 @@ GO_VERSION="1.15.6" HELM_VERSION="3.12.3" IMAGE_PULL_MODE="local" KIND_CLUSTER_NAME="jenkins" -LATEST_LTS_VERSION="2.452.2" +LATEST_LTS_VERSION="2.462.3" NAME="kubernetes-operator" NAMESPACE="default" OPERATOR_SDK_VERSION="1.3.0" diff --git a/pkg/constants/constants.go b/pkg/constants/constants.go index e43f87c0..ce12d345 100644 --- a/pkg/constants/constants.go +++ b/pkg/constants/constants.go @@ -8,7 +8,7 @@ const ( // SeedJobSuffix is a suffix added for all seed jobs SeedJobSuffix = "job-dsl-seed" // DefaultJenkinsMasterImage is the default Jenkins master docker image - DefaultJenkinsMasterImage = "jenkins/jenkins:2.452.2-lts" + DefaultJenkinsMasterImage = "jenkins/jenkins:2.462.3-lts" // DefaultHTTPPortInt32 is the default Jenkins HTTP port DefaultHTTPPortInt32 = int32(8080) // DefaultSlavePortInt32 is the default Jenkins port for slaves diff --git a/pkg/plugins/base_plugins.go b/pkg/plugins/base_plugins.go index 48982e02..46c3674d 100644 --- a/pkg/plugins/base_plugins.go +++ b/pkg/plugins/base_plugins.go @@ -1,13 +1,13 @@ package plugins const ( - configurationAsCodePlugin = "configuration-as-code:1810.v9b_c30a_249a_4c" - gitPlugin = "git:5.2.2" - jobDslPlugin = "job-dsl:1.87" - kubernetesPlugin = "kubernetes:4246.v5a_12b_1fe120e" + configurationAsCodePlugin = "configuration-as-code:1850.va_a_8c31d3158b_" + gitPlugin = "git:5.5.2" + jobDslPlugin = "job-dsl:1.89" + kubernetesPlugin = "kubernetes:4295.v7fa_01b_309c95" kubernetesCredentialsProviderPlugin = "kubernetes-credentials-provider:1.262.v2670ef7ea_0c5" - workflowAggregatorPlugin = "workflow-aggregator:596.v8c21c963d92d" - workflowJobPlugin = "workflow-job:1400.v7fd111b_ec82f" + workflowAggregatorPlugin = "workflow-aggregator:600.vb_57cdd26fdd7" + workflowJobPlugin = "workflow-job:1436.vfa_244484591f" ) // basePluginsList contains plugins to install by operator. diff --git a/test/bats/1-deploy.bats b/test/bats/1-deploy.bats index c425ac21..c690ee5c 100644 --- a/test/bats/1-deploy.bats +++ b/test/bats/1-deploy.bats @@ -33,7 +33,7 @@ diag() { --set namespace=${DETIK_CLIENT_NAMESPACE} \ --set operator.image=${OPERATOR_IMAGE} \ --set jenkins.latestPlugins=true \ - --set jenkins.image="jenkins/jenkins:2.452.2-lts" \ + --set jenkins.image="jenkins/jenkins:2.462.3-lts" \ --set jenkins.imagePullPolicy="IfNotPresent" \ --set jenkins.backup.makeBackupBeforePodDeletion=false \ --set jenkins.backup.image=quay.io/jenkins-kubernetes-operator/backup-pvc:e2e-test \ @@ -154,7 +154,7 @@ diag() { --set namespace=${DETIK_CLIENT_NAMESPACE} \ --set operator.image=${OPERATOR_IMAGE} \ --set jenkins.latestPlugins=true \ - --set jenkins.image="jenkins/jenkins:2.452.2-lts" \ + --set jenkins.image="jenkins/jenkins:2.462.3-lts" \ --set jenkins.imagePullPolicy="IfNotPresent" \ --set jenkins.backup.makeBackupBeforePodDeletion=false \ --set jenkins.backup.image=quay.io/jenkins-kubernetes-operator/backup-pvc:e2e-test \ diff --git a/test/bats/2-deploy-with-more-options.bats b/test/bats/2-deploy-with-more-options.bats index d69cb260..3b9aabee 100644 --- a/test/bats/2-deploy-with-more-options.bats +++ b/test/bats/2-deploy-with-more-options.bats @@ -29,7 +29,7 @@ setup() { --set operator.image=${OPERATOR_IMAGE} \ --set jenkins.latestPlugins=true \ --set jenkins.nodeSelector.batstest=yep \ - --set jenkins.image="jenkins/jenkins:2.452.2-lts" \ + --set jenkins.image="jenkins/jenkins:2.462.3-lts" \ --set jenkins.imagePullPolicy="IfNotPresent" \ --set jenkins.backup.makeBackupBeforePodDeletion=false \ --set jenkins.backup.image=quay.io/jenkins-kubernetes-operator/backup-pvc:e2e-test \ @@ -103,7 +103,7 @@ setup() { --set operator.image=${OPERATOR_IMAGE} \ --set jenkins.latestPlugins=true \ --set jenkins.nodeSelector.batstest=yep \ - --set jenkins.image="jenkins/jenkins:2.452.2-lts" \ + --set jenkins.image="jenkins/jenkins:2.462.3-lts" \ --set jenkins.imagePullPolicy="IfNotPresent" \ --set jenkins.backup.makeBackupBeforePodDeletion=false \ --set jenkins.backup.image=quay.io/jenkins-kubernetes-operator/backup-pvc:e2e-test \ diff --git a/test/bats/3-deploy-with-webhook.bats b/test/bats/3-deploy-with-webhook.bats index 7c861aa0..92f7b74b 100644 --- a/test/bats/3-deploy-with-webhook.bats +++ b/test/bats/3-deploy-with-webhook.bats @@ -29,7 +29,7 @@ setup() { --set namespace=${DETIK_CLIENT_NAMESPACE} \ --set operator.image=${OPERATOR_IMAGE} \ --set jenkins.latestPlugins=true \ - --set jenkins.image="jenkins/jenkins:2.452.2-lts" \ + --set jenkins.image="jenkins/jenkins:2.462.3-lts" \ --set jenkins.imagePullPolicy="IfNotPresent" \ --set jenkins.backup.makeBackupBeforePodDeletion=true \ --set jenkins.backup.image=quay.io/jenkins-kubernetes-operator/backup-pvc:e2e-test \ @@ -90,7 +90,7 @@ setup() { --set namespace=${DETIK_CLIENT_NAMESPACE} \ --set operator.image=${OPERATOR_IMAGE} \ --set jenkins.latestPlugins=true \ - --set jenkins.image="jenkins/jenkins:2.452.2-lts" \ + --set jenkins.image="jenkins/jenkins:2.462.3-lts" \ --set jenkins.imagePullPolicy="IfNotPresent" \ --set jenkins.backup.makeBackupBeforePodDeletion=true \ --set jenkins.backup.image=quay.io/jenkins-kubernetes-operator/backup-pvc:e2e-test \ diff --git a/test/e2e/configuration_test.go b/test/e2e/configuration_test.go index 596c8d7e..d2a7f94f 100644 --- a/test/e2e/configuration_test.go +++ b/test/e2e/configuration_test.go @@ -24,13 +24,13 @@ import ( const e2e = "e2e" var expectedBasePluginsList = []plugins.Plugin{ - plugins.Must(plugins.New("configuration-as-code:1810.v9b_c30a_249a_4c")), - plugins.Must(plugins.New("git:5.2.2")), - plugins.Must(plugins.New("kubernetes:4246.v5a_12b_1fe120e")), + plugins.Must(plugins.New("configuration-as-code:1850.va_a_8c31d3158b_")), + plugins.Must(plugins.New("git:5.5.2")), + plugins.Must(plugins.New("kubernetes:4295.v7fa_01b_309c95")), plugins.Must(plugins.New("kubernetes-credentials-provider:1.262.v2670ef7ea_0c5")), - plugins.Must(plugins.New("job-dsl:1.87")), - plugins.Must(plugins.New("workflow-aggregator:596.v8c21c963d92d")), - plugins.Must(plugins.New("workflow-job:1400.v7fd111b_ec82f")), + plugins.Must(plugins.New("job-dsl:1.89")), + plugins.Must(plugins.New("workflow-aggregator:600.vb_57cdd26fdd7")), + plugins.Must(plugins.New("workflow-job:1436.vfa_244484591f")), } func createUserConfigurationSecret(namespace string, stringData map[string]string) { diff --git a/test/e2e/test_utility.go b/test/e2e/test_utility.go index fd0e0826..25de86df 100644 --- a/test/e2e/test_utility.go +++ b/test/e2e/test_utility.go @@ -21,7 +21,7 @@ import ( "sigs.k8s.io/controller-runtime/pkg/envtest" ) -const JenkinsTestImage = "jenkins/jenkins:2.452.2-lts" +const JenkinsTestImage = "jenkins/jenkins:2.462.3-lts" var ( Cfg *rest.Config diff --git a/test/helm/helm_test.go b/test/helm/helm_test.go index 70fe3944..3dd8fa12 100644 --- a/test/helm/helm_test.go +++ b/test/helm/helm_test.go @@ -47,7 +47,7 @@ var _ = Describe("Jenkins Controller", func() { cmd := exec.Command("../../bin/helm", "upgrade", "jenkins", "../../chart/jenkins-operator", "--namespace", namespace.Name, "--debug", "--set-string", fmt.Sprintf("jenkins.namespace=%s", namespace.Name), - "--set-string", fmt.Sprintf("jenkins.image=%s", "jenkins/jenkins:2.452.2-lts"), + "--set-string", fmt.Sprintf("jenkins.image=%s", "jenkins/jenkins:2.462.3-lts"), "--set-string", fmt.Sprintf("operator.image=%s", *imageName), "--set-string", fmt.Sprintf("backup.image=%s", "quay.io/jenkins-kubernetes-operator/backup-pvc:e2e-test"), "--set-string", fmt.Sprintf("jenkins.imagePullPolicy=%s", "IfNotPresent"), "--install") From d919a2a11cf1b6417daaa414ad315cf3cc985fcc Mon Sep 17 00:00:00 2001 From: DionJones615 Date: Thu, 21 Nov 2024 19:03:01 -0500 Subject: [PATCH 4/5] fix(master): pass lifecycle configuration to master container (#1062) --- api/v1alpha2/jenkins_types.go | 1 + chart/jenkins-operator/templates/jenkins.yaml | 3 +++ chart/jenkins-operator/values.yaml | 3 +++ controllers/jenkins_controller.go | 5 +++++ pkg/configuration/base/resources/pod.go | 1 + test/bats/2-deploy-with-more-options.bats | 10 ++++++++++ 6 files changed, 23 insertions(+) diff --git a/api/v1alpha2/jenkins_types.go b/api/v1alpha2/jenkins_types.go index 09332af4..4b9f95ce 100644 --- a/api/v1alpha2/jenkins_types.go +++ b/api/v1alpha2/jenkins_types.go @@ -311,6 +311,7 @@ type JenkinsMaster struct { // periodSeconds: 10 // successThreshold: 1 // timeoutSeconds: 5 + // lifecycle: {} // name: jenkins-master // readinessProbe: // failureThreshold: 3 diff --git a/chart/jenkins-operator/templates/jenkins.yaml b/chart/jenkins-operator/templates/jenkins.yaml index 72c18c23..0906891f 100644 --- a/chart/jenkins-operator/templates/jenkins.yaml +++ b/chart/jenkins-operator/templates/jenkins.yaml @@ -134,6 +134,9 @@ spec: {{- with .Values.jenkins.env }} env: {{- toYaml . | nindent 8 }} {{- end }} + {{- with .Values.jenkins.lifecycle}} + lifecycle: {{ toYaml . | nindent 10 }} + {{- end }} {{- with .Values.jenkins.volumeMounts }} volumeMounts: {{- toYaml . | nindent 8 }} {{- end }} diff --git a/chart/jenkins-operator/values.yaml b/chart/jenkins-operator/values.yaml index c2a1cdd1..e4034798 100644 --- a/chart/jenkins-operator/values.yaml +++ b/chart/jenkins-operator/values.yaml @@ -44,6 +44,9 @@ jenkins: # imagePullPolicy defines policy for pulling images imagePullPolicy: Always + # lifecycle is used if you want to specify lifecycle hooks for the master container + lifecycle: {} + # priorityClassName indicates the importance of a Pod relative to other Pods # See: https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/ priorityClassName: "" diff --git a/controllers/jenkins_controller.go b/controllers/jenkins_controller.go index 7eb92454..8569b6f2 100644 --- a/controllers/jenkins_controller.go +++ b/controllers/jenkins_controller.go @@ -378,6 +378,11 @@ func (r *JenkinsReconciler) setDefaults(jenkins *v1alpha2.Jenkins) (requeue bool changed = true jenkinsContainer.LivenessProbe = resources.NewProbe(containerProbeURI, containerProbePortName, corev1.URISchemeHTTP, 80, 5, 12) } + if jenkinsContainer.Lifecycle == nil { + logger.Info("Setting default Jenkins lifecycle") + changed = true + jenkinsContainer.Lifecycle = &corev1.Lifecycle{} + } if len(jenkinsContainer.Command) == 0 { logger.Info("Setting default Jenkins container command") changed = true diff --git a/pkg/configuration/base/resources/pod.go b/pkg/configuration/base/resources/pod.go index 783ccaa2..e46eb533 100644 --- a/pkg/configuration/base/resources/pod.go +++ b/pkg/configuration/base/resources/pod.go @@ -243,6 +243,7 @@ func NewJenkinsMasterContainer(jenkins *v1alpha2.Jenkins) corev1.Container { Image: jenkinsContainer.Image, ImagePullPolicy: jenkinsContainer.ImagePullPolicy, Command: jenkinsContainer.Command, + Lifecycle: jenkinsContainer.Lifecycle, LivenessProbe: jenkinsContainer.LivenessProbe, ReadinessProbe: jenkinsContainer.ReadinessProbe, Ports: []corev1.ContainerPort{ diff --git a/test/bats/2-deploy-with-more-options.bats b/test/bats/2-deploy-with-more-options.bats index 3b9aabee..693bf400 100644 --- a/test/bats/2-deploy-with-more-options.bats +++ b/test/bats/2-deploy-with-more-options.bats @@ -105,6 +105,7 @@ setup() { --set jenkins.nodeSelector.batstest=yep \ --set jenkins.image="jenkins/jenkins:2.462.3-lts" \ --set jenkins.imagePullPolicy="IfNotPresent" \ + --set jenkins.lifecycle.preStop.command='["echo bats test"]' \ --set jenkins.backup.makeBackupBeforePodDeletion=false \ --set jenkins.backup.image=quay.io/jenkins-kubernetes-operator/backup-pvc:e2e-test \ chart/jenkins-operator --wait @@ -137,6 +138,15 @@ setup() { assert_success } +#bats test_tags=phase:helm,scenario:more-options +@test "2.5 Helm: check lifecycle" { + [[ ! -f "chart/jenkins-operator/deploy.tmp" ]] && skip "Jenkins helm chart have not been deployed correctly" + + run ${KUBECTL} get pod jenkins-jenkins -o jsonpath={.spec.containers[0].lifecycle.preStop.exec.command[0]} + assert_success + assert_output "echo 'bats test'" +} + #bats test_tags=phase:helm,scenario:more-options @test "2.12 Helm: check node selector again" { [[ ! -f "chart/jenkins-operator/deploy.tmp" ]] && skip "Jenkins helm chart have not been deployed correctly" From f0da3494aecd5c4a22b958f7a9e8c495852f08ee Mon Sep 17 00:00:00 2001 From: Daniel Beck <1831569+daniel-beck@users.noreply.github.com> Date: Sat, 15 Mar 2025 11:09:10 +0100 Subject: [PATCH 5/5] Delete workflow using backdoored action https://news.ycombinator.com/item?id=43368870 https://github.com/tj-actions/changed-files/commit/0e58ed8671d6b60d0890c21b07f8835ace038e67 --- .github/workflows/auto-codespell.yml | 40 ---------------------------- 1 file changed, 40 deletions(-) delete mode 100644 .github/workflows/auto-codespell.yml diff --git a/.github/workflows/auto-codespell.yml b/.github/workflows/auto-codespell.yml deleted file mode 100644 index cb3c144d..00000000 --- a/.github/workflows/auto-codespell.yml +++ /dev/null @@ -1,40 +0,0 @@ -name: CI Lint -on: - push: - branches: - - master - - main - pull_request: - types: [opened, synchronize, ready_for_review, reopened] -jobs: - codespell: - name: Codespell - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 - - name: Codespell - uses: codespell-project/actions-codespell@v2 - with: - check_filenames: true - ignore_words_list: aks,ags,startin,NotIn - skip: "*.js,package-lock.json,*.lock,*/Font-Awesome/*,*.toml,*.svg,*assets/vendor/bootstrap*,cert-manager.crds.yaml,*/docs/*" - pre-commit: - name: PreCommit - runs-on: ubuntu-latest - steps: - - uses: actions/setup-python@v5.1.1 - - uses: DeterminateSystems/nix-installer-action@v13 - with: - diagnostic-endpoint: "" - - uses: DeterminateSystems/magic-nix-cache-action@v7 - with: - diagnostic-endpoint: "" - - name: Checkout - uses: actions/checkout@v4 - - id: files - uses: tj-actions/changed-files@v44 - - name: nix checks - run: nix flake check - - name: nix pre-commit - run: nix develop . --command pre-commit run --files ${{ steps.files.outputs.all_changed_files }} --show-diff-on-failure