-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathMakefile.maker.yaml
More file actions
102 lines (87 loc) · 2.71 KB
/
Makefile.maker.yaml
File metadata and controls
102 lines (87 loc) · 2.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
# Configuration file for <https://github.com/sapcc/go-makefile-maker>
metadata:
url: https://github.com/sapcc/keppel
binaries:
- name: keppel
fromPackage: .
installTo: bin/
coverageTest:
only: '/internal'
except: '/drivers|/test/util'
dockerfile:
enabled: true
extraBuildDirectives:
# If ihe CI has supplied additional CA certificates, include them in the CA bundle
- 'COPY certs/* /usr/local/share/ca-certificates/'
- 'RUN update-ca-certificates'
extraIgnores:
- "*.actual"
- privkey.pem
golang:
autoupdateDependencies:
enabled: true
matchModule: ^github.com/(?:sapcc|sap-cloud-infrastructure)/
setGoModVersion: true
golangciLint:
createConfig: true
errcheckExcludes:
- encoding/json.Marshal
# Any error in HTTP handlers is handled by the server itself.
- (net/http.ResponseWriter).Write
- (*github.com/spf13/cobra.Command).Help
reviveRules:
- name: exported
arguments:
- checkPrivateReceivers
- disableChecksOnConstants
githubWorkflow:
ci:
enabled: true
nix:
extraPackages:
- openssl
renovate:
enabled: true
assignees:
- majewsky
- SuperSandro2000
packageRules:
- matchDepTypes: ["action"]
matchFileNames: [".github/workflows/oci-distribution-conformance.yml"]
enabled: true
reuse:
annotations:
- paths:
- certs/*.crt
- certs/README.md
- cmd/test/*.json
- docs/*.png
- docs/*.svg
- docs/*.json
- internal/**/fixtures/**/*.json
- internal/**/fixtures/**/*.sql
- internal/**/fixtures/**/*.sql.actual
SPDX-FileCopyrightText: SAP SE or an SAP affiliate company
SPDX-License-Identifier: Apache-2.0
typos:
extendExcludes:
- internal/api/keppel/fixtures/*.json
- internal/tasks/fixtures/trivy/*.json
- internal/test/setup_consts.go
extendWords:
fo: fo # part of regex fo+
DELET: DELET # wrongly detected
verbatim: |
# This is for manual testing.
run-api: build/keppel
set -euo pipefail && source ./.env && $(CURDIR)/build/keppel server api
copy-fixtures:
find -name '*.actual' | xargs -I{} bash -c 'mv {} $$(echo {} | sed "s/.actual//g")'
conformance-test/privkey.pem:
openssl genrsa -out $@ 4096
# This is for running test suites like the OCI distribution API conformance test.
# An account called "conformance-test" and a hardcoded username/password pair
# (see env.sh mentioned below) will be pre-configured and ready to use for the test run.
run-api-for-conformance-test: build/keppel conformance-test/privkey.pem
@echo "Ready to run conformance test"
set -euo pipefail && source conformance-test/env.sh && conformance-test/with-postgres-db.sh $(CURDIR)/build/keppel server api