-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (32 loc) · 1.63 KB
/
Makefile
File metadata and controls
35 lines (32 loc) · 1.63 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
.PHONY: generate-openshift-ci update
generate-openshift:
go run github.com/openshift-pipelines/hack/cmd/prowgen --config config/task-buildpacks.yaml $(ARGS)
go run github.com/openshift-pipelines/hack/cmd/prowgen --config config/task-containers.yaml $(ARGS)
go run github.com/openshift-pipelines/hack/cmd/prowgen --config config/task-git.yaml $(ARGS)
go run github.com/openshift-pipelines/hack/cmd/prowgen --config config/task-maven.yaml $(ARGS)
go run github.com/openshift-pipelines/hack/cmd/prowgen --config config/task-openshift.yaml $(ARGS)
# Simple command to update all configurations - just provide the version number and image suffix
# Usage: make update VERSION=1.16 IMAGE_SUFFIX=-rhel8 [DRY_RUN=--dry-run]
update:
@if [ -z "$(VERSION)" ]; then \
echo "Error: Missing VERSION parameter. Usage:"; \
echo " make update VERSION=1.16 IMAGE_SUFFIX=-rhel8 [DRY_RUN=--dry-run]"; \
exit 1; \
fi
@if [ -z "$(IMAGE_SUFFIX)" ]; then \
echo "Error: Missing IMAGE_SUFFIX parameter. Usage:"; \
echo " make update VERSION=1.16 IMAGE_SUFFIX=-rhel8 [DRY_RUN=--dry-run]"; \
exit 1; \
fi
./hack/update-all.sh $(DRY_RUN) $(VERSION) $(IMAGE_SUFFIX)
# Help target
help:
@echo "Available targets:"
@echo " generate-openshift - Generate OpenShift CI configuration"
@echo " update - Update all configurations with version number and image suffix"
@echo " help - Show this help message"
@echo ""
@echo "Examples:"
@echo " make update VERSION=1.16 IMAGE_SUFFIX=-rhel8 [DRY_RUN=--dry-run]"
@echo ""
@echo "Add DRY_RUN=--dry-run to any command to see what would be changed without making changes"