File tree Expand file tree Collapse file tree 4 files changed +12
-11
lines changed Expand file tree Collapse file tree 4 files changed +12
-11
lines changed Original file line number Diff line number Diff line change 31
31
go-version : ${{ matrix.go }}
32
32
33
33
- name : Build
34
- run : make docker -build
34
+ run : make operator -build
35
35
36
36
- name : Login to Quay
37
37
uses : docker/login-action@v1
41
41
password : ${{ secrets.QUAY_ROBOT_TOKEN }}
42
42
43
43
- name : Push
44
- run : make docker -push
44
+ run : make operator -push
45
45
46
46
publish-bundle :
47
47
name : Bundle Image
Original file line number Diff line number Diff line change 84
84
go-version : ${{ matrix.go }}
85
85
86
86
- name : Build
87
- run : make docker -build
87
+ run : make operator -build
88
88
89
89
validate-bundle :
90
90
name : Validate Operator Bundle
Original file line number Diff line number Diff line change @@ -74,11 +74,11 @@ build: generate fmt vet golangci-lint kube-linter ## Build manager binary.
74
74
run : manifests generate fmt vet # # Run a controller from your host.
75
75
go run ./main.go
76
76
77
- docker -build : generate fmt vet golangci-lint kube-linter # # Build docker image with the manager.
78
- docker build -t ${IMG} .
77
+ operator -build : generate fmt vet golangci-lint kube-linter # # Build docker image with the manager.
78
+ ${BUILD_TOOL} build -t ${IMG} .
79
79
80
- docker -push : # # Push docker image with the manager.
81
- docker push ${IMG}
80
+ operator -push : # # Push docker image with the manager.
81
+ ${BUILD_TOOL} push ${IMG}
82
82
83
83
# #@ Deployment
84
84
@@ -117,19 +117,19 @@ endif
117
117
118
118
.PHONY : bundle-build
119
119
bundle-build : bundle # # Build the bundle image.
120
- docker build -f bundle.Dockerfile -t $(BUNDLE_IMG ) .
120
+ ${BUILD_TOOL} build -f bundle.Dockerfile -t $(BUNDLE_IMG ) .
121
121
122
122
.PHONY : bundle-push
123
123
bundle-push : # # Push the bundle image.
124
- $(MAKE ) docker -push IMG=$(BUNDLE_IMG )
124
+ $(MAKE ) operator -push IMG=$(BUNDLE_IMG )
125
125
126
126
.PHONY : catalog-build
127
127
catalog-build : opm # # Build a catalog image.
128
- $(OPM ) index add --container-tool docker --mode semver --tag $(CATALOG_IMG ) --bundles $(BUNDLE_IMGS ) $(FROM_INDEX_OPT )
128
+ $(OPM ) index add --container-tool ${BUILD_TOOL} --mode semver --tag $(CATALOG_IMG ) --bundles $(BUNDLE_IMGS ) $(FROM_INDEX_OPT )
129
129
130
130
.PHONY : catalog-push
131
131
catalog-push : # # Push a catalog image.
132
- $(MAKE ) docker -push IMG=$(CATALOG_IMG )
132
+ $(MAKE ) operator -push IMG=$(CATALOG_IMG )
133
133
134
134
# #@ Actions
135
135
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ MULTICLUSTER_CONSOLE_IMG_TAG ?= latest
22
22
IMG ?= $(IMAGE_REGISTRY ) /$(REGISTRY_NAMESPACE ) /$(IMAGE_NAME ) :$(IMAGE_TAG )
23
23
MULTICLUSTER_CONSOLE_IMG ?= ${IMAGE_REGISTRY}/$(REGISTRY_NAMESPACE ) /$(MULTICLUSTER_CONSOLE_IMG_NAME ) :$(MULTICLUSTER_CONSOLE_IMG_TAG )
24
24
25
+ BUILD_TOOL ?= docker
25
26
# CHANNELS define the bundle channels used in the bundle.
26
27
# Add a new line here if you would like to change its default config. (E.g CHANNELS = "candidate,fast,stable")
27
28
# To re-generate a bundle for other specific channels without changing the standard setup, you can:
You can’t perform that action at this time.
0 commit comments