-
Notifications
You must be signed in to change notification settings - Fork 16
/
Makefile
93 lines (73 loc) · 4.11 KB
/
Makefile
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
# Includes test environment variables to test that the generate command support
# replacing reference images via env variable.
include pkg/project/testdata/env
generate-ci: clean generate-ci-no-clean
.PHONY: generate-ci
generate-ci-no-clean:
go run github.com/openshift-knative/hack/cmd/prowgen --config config/
.PHONY: generate-ci-no-clean
generate-client-ci:
go run github.com/openshift-knative/hack/cmd/prowgen --config config/client.yaml $(ARGS)
.PHONY: generate-client-ci
generate-eventing-ci:
go run github.com/openshift-knative/hack/cmd/prowgen --config config/eventing.yaml $(ARGS)
go run github.com/openshift-knative/hack/cmd/prowgen --config config/backstage-plugins.yaml $(ARGS)
go run github.com/openshift-knative/hack/cmd/prowgen --config config/eventing-istio.yaml $(ARGS)
go run github.com/openshift-knative/hack/cmd/prowgen --config config/eventing-kafka-broker.yaml $(ARGS)
go run github.com/openshift-knative/hack/cmd/prowgen --config config/eventing-hyperfoil-benchmark.yaml $(ARGS)
.PHONY: generate-eventing-ci
generate-serving-ci:
go run github.com/openshift-knative/hack/cmd/prowgen --config config/serving.yaml $(ARGS)
go run github.com/openshift-knative/hack/cmd/prowgen --config config/serving-net-istio.yaml $(ARGS)
go run github.com/openshift-knative/hack/cmd/prowgen --config config/serving-net-kourier.yaml $(ARGS)
.PHONY: generate-serving-ci
generate-serverless-operator-ci:
go run github.com/openshift-knative/hack/cmd/prowgen --config config/serverless-operator.yaml $(ARGS)
.PHONY: generate-serverless-operator-ci
generate-functions-ci:
go run github.com/openshift-knative/hack/cmd/prowgen --config config/kn-plugin-func.yaml $(ARGS)
.PHONY: generate-functions-ci
generate-plugin-event-ci:
go run github.com/openshift-knative/hack/cmd/prowgen --config config/kn-plugin-event.yaml $(ARGS)
.PHONY: generate-plugin-event-ci
discover-branches: clean
go run github.com/openshift-knative/hack/cmd/discover $(ARGS)
.PHONY: discover-branches
generate-ci-action:
go run github.com/openshift-knative/hack/cmd/generate-ci-action
.PHONY: generate-ci-action
konflux-apply: clean konflux-apply-no-clean
.PHONY: konflux-apply
konflux-apply-no-clean:
go run github.com/openshift-knative/hack/cmd/konflux-apply
.PHONY: konflux-apply-no-clean
konflux-update-pipelines:
tkn bundle list quay.io/konflux-ci/tekton-catalog/pipeline-docker-build-multi-platform-oci-ta:devel -o=yaml > pkg/konfluxgen/kustomize/docker-build.yaml
tkn bundle list quay.io/konflux-ci/tekton-catalog/pipeline-fbc-builder:devel -o=yaml > pkg/konfluxgen/kustomize/fbc-builder.yaml
kustomize build pkg/konfluxgen/kustomize/kustomize-docker-build/ --output pkg/konfluxgen/docker-build.yaml --load-restrictor LoadRestrictionsNone
kustomize build pkg/konfluxgen/kustomize/kustomize-java-docker-build/ --output pkg/konfluxgen/docker-java-build.yaml --load-restrictor LoadRestrictionsNone
kustomize build pkg/konfluxgen/kustomize/kustomize-fbc-builder/ --output pkg/konfluxgen/fbc-builder.yaml --load-restrictor LoadRestrictionsNone
unit-tests:
go test ./pkg/...
rm -rf openshift/project/testoutput
rm -rf openshift/project/.github
mkdir -p openshift
go run ./cmd/generate-ci-action --input ".github/workflows/release-generate-ci-template.yaml" --config "config/" --output "openshift/release-generate-ci.yaml"
# If the following fails, please run 'make generate-ci-action'
diff -r "openshift/release-generate-ci.yaml" ".github/workflows/release-generate-ci.yaml"
go run ./cmd/generate/ --generators dockerfile \
--project-file pkg/project/testdata/project.yaml \
--includes "^cmd/.*discover.*" \
--additional-packages tzdata \
--additional-packages rsync \
--images-from "hack" \
--images-from-url-format "https://raw.githubusercontent.com/openshift-knative/%s/%s/pkg/project/testdata/additional-images.yaml" \
--output "openshift/project/testoutput/openshift"
diff -r "pkg/project/testoutput" "openshift/project/testoutput"
.PHONY: unit-tests
test-select:
go run github.com/openshift-knative/hack/cmd/testselect --testsuites $(TESTSUITES) --clonerefs $(CLONEREFS) --output=tests.txt
.PHONY: test-select
clean:
rm -rf openshift openshift-knative
.PHONY: clean