Skip to content

Commit 051a360

Browse files
authored
chore: standardize repository files (#53)
1 parent cc5a287 commit 051a360

File tree

5 files changed

+81
-73
lines changed

5 files changed

+81
-73
lines changed

.github/dependabot.yml

Lines changed: 43 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,55 @@
1+
# File managed by getyourguide/k8s-tools
12
version: 2
3+
registries:
4+
docker-registry-130607246975-dkr-ecr-eu-central-1-amazonaws-com:
5+
type: docker-registry
6+
url: https://130607246975.dkr.ecr.eu-central-1.amazonaws.com
7+
username: "${{ secrets.DOCKER_REGISTRY_130607246975_DKR_ECR_EU_CENTRAL_1_AMAZONAWS_COM_USERNAME }}"
8+
password: "${{ secrets.DOCKER_REGISTRY_130607246975_DKR_ECR_EU_CENTRAL_1_AMAZONAWS_COM_PASSWORD }}"
9+
docker-registry-890546402176-dkr-ecr-eu-central-1-amazonaws-com:
10+
type: docker-registry
11+
url: https://890546402176.dkr.ecr.eu-central-1.amazonaws.com
12+
username: "${{ secrets.DOCKER_REGISTRY_890546402176_DKR_ECR_EU_CENTRAL_1_AMAZONAWS_COM_USERNAME }}"
13+
password: "${{ secrets.DOCKER_REGISTRY_890546402176_DKR_ECR_EU_CENTRAL_1_AMAZONAWS_COM_PASSWORD }}"
214
updates:
15+
- package-ecosystem: docker
16+
directory: /
17+
schedule:
18+
interval: weekly
19+
day: monday
20+
time: "13:00"
21+
timezone: Europe/Berlin
22+
registries:
23+
- docker-registry-890546402176-dkr-ecr-eu-central-1-amazonaws-com
24+
- docker-registry-130607246975-dkr-ecr-eu-central-1-amazonaws-com
325
- package-ecosystem: github-actions
426
directory: /
527
schedule:
628
interval: weekly
7-
day: sunday
29+
day: monday
30+
time: "13:00"
831
timezone: Europe/Berlin
9-
open-pull-requests-limit: 5
32+
open-pull-requests-limit: 10
33+
cooldown:
34+
default-days: 10
35+
exclude:
36+
- getyourguide/*
1037
- package-ecosystem: gomod
11-
open-pull-requests-limit: 0 # only enable security updates
1238
directory: /
1339
schedule:
1440
interval: weekly
15-
day: wednesday
41+
day: monday
42+
time: "13:00"
1643
timezone: Europe/Berlin
44+
groups:
45+
01_minor-versions:
46+
update-types:
47+
- minor
48+
- patch
49+
cooldown:
50+
semver-major-days: 21
51+
semver-minor-days: 7
52+
semver-patch-days: 3
53+
default-days: 10
54+
exclude:
55+
- '*getyourguide*'

.github/renovate.json

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

.github/workflows/auto-approve.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# File managed by getyourguide/k8s-tools
2+
name: auto-approve
3+
on: pull_request
4+
5+
concurrency:
6+
group: ${{ github.workflow }}${{ github.ref_name != github.event.repository.default_branch && github.ref || github.run_id }}
7+
cancel-in-progress: ${{ github.ref_name != github.event.repository.default_branch }}
8+
9+
permissions:
10+
pull-requests: write
11+
contents: write
12+
13+
jobs:
14+
auto-approve:
15+
runs-on: [self-hosted, go-small]
16+
if: ${{ github.actor == 'dependabot[bot]' }}
17+
steps:
18+
- name: Approve Dependabot PR
19+
run: gh pr review --approve "$PR_URL"
20+
env:
21+
PR_URL: ${{ github.event.pull_request.html_url }}
22+
GITHUB_TOKEN: ${{ secrets.GYGROBOT_WRITE_TOKEN }}
23+
24+
- name: auto-merge Dependabot PR
25+
run: gh pr merge --auto --squash "$PR_URL"
26+
env:
27+
PR_URL: ${{ github.event.pull_request.html_url }}
28+
GITHUB_TOKEN: ${{ secrets.GYGROBOT_WRITE_TOKEN }}

.github/workflows/build-and-test.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ permissions:
1111
id-token: write
1212

1313
jobs:
14+
ci-required:
15+
runs-on: [self-hosted, go-large]
16+
needs: [test]
17+
if: success()
18+
steps:
19+
- run: echo "Required checks passed"
1420
test:
1521
runs-on: [ubuntu-latest]
1622
steps:

.golangci.yml

Lines changed: 4 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,7 @@
11
version: "2"
22
linters:
3-
default: none
4-
enable:
5-
- errcheck
6-
- govet
7-
- ineffassign
8-
- staticcheck
9-
- unused
103
exclusions:
11-
generated: lax
12-
presets:
13-
- comments
14-
- common-false-positives
15-
- legacy
16-
- std-error-handling
17-
paths:
18-
- third_party$
19-
- builtin$
20-
- examples$
21-
formatters:
22-
enable:
23-
- gofumpt
24-
exclusions:
25-
generated: lax
26-
paths:
27-
- third_party$
28-
- builtin$
29-
- examples$
4+
rules:
5+
- path: .+
6+
linters:
7+
- errcheck

0 commit comments

Comments
 (0)