Skip to content

Commit 762c2bf

Browse files
authored
Remove dependabot and use labeler from common (#831)
1 parent a724130 commit 762c2bf

File tree

8 files changed

+16
-69
lines changed

8 files changed

+16
-69
lines changed

.github/dependabot.yml

Lines changed: 0 additions & 16 deletions
This file was deleted.

.github/labeler.yml

Lines changed: 0 additions & 27 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ jobs:
179179
- name: Run GoReleaser
180180
uses: goreleaser/goreleaser-action@286f3b13b1b49da4ac219696163fb8c1c93e1200 # v6.0.0
181181
with:
182-
version: latest
182+
version: v2.2.0 # renovate: datasource=github-tags depName=goreleaser/goreleaser
183183
args: ${{ github.ref_type == 'tag' && 'release' || 'build --snapshot' }} ${{ github.event_name == 'pull_request' && '--single-target' || '' }} --clean
184184
env:
185185
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/dependabot-auto-merge.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

.github/workflows/labeler.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,15 @@ jobs:
1212
pull-requests: write
1313
runs-on: ubuntu-22.04
1414
steps:
15+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
16+
with:
17+
sparse-checkout: |
18+
labeler.yml
19+
sparse-checkout-cone-mode: false
20+
repository: nginxinc/k8s-common
21+
1522
- uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9 # v5.0.0
1623
with:
1724
repo-token: "${{ secrets.GITHUB_TOKEN }}"
1825
sync-labels: true
26+
configuration-path: labeler.yml

.github/workflows/lint.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ jobs:
3131

3232
- name: Lint Go
3333
uses: golangci/golangci-lint-action@aaa42aa0628b4ae2578232a66b541047968fac86 # v6.1.0
34+
with:
35+
version: v1.60.3 # renovate: datasource=github-tags depName=golangci/golangci-lint
3436

3537
actionlint:
3638
name: Actionlint

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
VERSION = 1.3.0
22
TAG = $(VERSION)
33
PREFIX = nginx/nginx-prometheus-exporter
4+
# renovate: datasource=docker depName=golangci/golangci-lint
5+
GOLANGCI_LINT_VERSION = v1.60.3
46

57
.DEFAULT_GOAL:=nginx-prometheus-exporter
68

@@ -19,7 +21,7 @@ build-goreleaser: ## Build all binaries using GoReleaser
1921

2022
.PHONY: lint
2123
lint: ## Run linter
22-
docker run --pull always --rm -v $(shell pwd):/nginx-prometheus-exporter -w /nginx-prometheus-exporter -v $(shell go env GOCACHE):/cache/go -e GOCACHE=/cache/go -e GOLANGCI_LINT_CACHE=/cache/go -v $(shell go env GOPATH)/pkg:/go/pkg golangci/golangci-lint:latest golangci-lint --color always run
24+
docker run --pull always --rm -v $(shell pwd):/nginx-prometheus-exporter -w /nginx-prometheus-exporter -v $(shell go env GOCACHE):/cache/go -e GOCACHE=/cache/go -e GOLANGCI_LINT_CACHE=/cache/go -v $(shell go env GOPATH)/pkg:/go/pkg golangci/golangci-lint:$(GOLANGCI_LINT_VERSION) golangci-lint --color always run
2325

2426
.PHONY: test
2527
test: ## Run tests

renovate.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
33
"extends": [
4-
"github>nginxinc/k8s-common"
4+
"github>nginxinc/k8s-common",
5+
"schedule:earlyMondays"
56
]
67
}

0 commit comments

Comments
 (0)