@@ -31,18 +31,21 @@ GO_BUILD_ARGS = \
31
31
32
32
ANSIBLE_BASE_IMAGE = quay.io/operator-framework/ansible-operator
33
33
HELM_BASE_IMAGE = quay.io/operator-framework/helm-operator
34
+ OPERATOR_SDK_BASE_IMAGE = quay.io/operator-framework/operator-sdk
34
35
CUSTOM_SCORECARD_TESTS_BASE_IMAGE = quay.io/operator-framework/custom-scorecard-tests
35
36
SCORECARD_TEST_BASE_IMAGE = quay.io/operator-framework/scorecard-test
36
37
SCORECARD_TEST_KUTTL_BASE_IMAGE = quay.io/operator-framework/scorecard-test-kuttl
37
38
38
39
ANSIBLE_IMAGE ?= $(ANSIBLE_BASE_IMAGE )
39
40
HELM_IMAGE ?= $(HELM_BASE_IMAGE )
41
+ OPERATOR_SDK_IMAGE ?= $(OPERATOR_SDK_BASE_IMAGE )
40
42
CUSTOM_SCORECARD_TESTS_IMAGE ?= $(CUSTOM_SCORECARD_TESTS_BASE_IMAGE )
41
43
SCORECARD_TEST_IMAGE ?= $(SCORECARD_TEST_BASE_IMAGE )
42
44
SCORECARD_TEST_KUTTL_IMAGE ?= $(SCORECARD_TEST_KUTTL_BASE_IMAGE )
43
45
44
46
ANSIBLE_ARCHES: ="amd64" "ppc64le" "arm64" "s390x"
45
47
HELM_ARCHES: ="amd64" "ppc64le" "arm64" "s390x"
48
+ OPERATOR_SDK_ARCHES: ="amd64" "ppc64le" "arm64" "s390x"
46
49
SCORECARD_TEST_ARCHES: ="amd64" "ppc64le" "arm64" "s390x"
47
50
SCORECARD_TEST_KUTTL_ARCHES: ="amd64" "ppc64le" "arm64"
48
51
# the custom scorecard test image is a scorecard example only
@@ -184,9 +187,9 @@ build/%.asc: ## Create release signatures for operator-sdk release binaries
184
187
185
188
image : image-build image-push # # Build and push all images
186
189
187
- image-build : image-build-ansible image-build-helm image-build-scorecard-test image-build-scorecard-test-kuttl image-build-custom-scorecard-tests # # Build all images
190
+ image-build : image-build-ansible image-build-helm image-build-scorecard-test image-build-scorecard-test-kuttl image-build-custom-scorecard-tests image-build-sdk # # Build all images
188
191
189
- image-push : image-push-ansible image-push-helm image-push-scorecard-test image-push-scorecard-test-kuttl # # Push all images
192
+ image-push : image-push-ansible image-push-helm image-push-scorecard-test image-push-scorecard-test-kuttl image-push-sdk # # Push all images
190
193
191
194
# Ansible operator image scaffold/build/push.
192
195
.PHONY : image-scaffold-ansible image-build-ansible image-push-ansible image-push-ansible-multiarch
@@ -218,6 +221,18 @@ image-push-helm:
218
221
image-push-helm-multiarch :
219
222
./hack/image/push-manifest-list.sh $(HELM_IMAGE ) ${HELM_ARCHES}
220
223
224
+ .PHONY : image-build-sdk image-push-sdk image-push-sdk-multiarch
225
+
226
+ image-build-sdk : build/operator-sdk-dev-linux-gnu
227
+ ./hack/image/build-sdk-image.sh $(OPERATOR_SDK_BASE_IMAGE ) :dev
228
+
229
+ image-push-sdk :
230
+ ./hack/image/push-image-tags.sh $(OPERATOR_SDK_BASE_IMAGE ) :dev $(OPERATOR_SDK_IMAGE ) -$(shell go env GOARCH)
231
+
232
+ image-push-sdk-multiarch :
233
+ ./hack/image/push-manifest-list.sh $(OPERATOR_SDK_IMAGE ) ${OPERATOR_SDK_ARCHES}
234
+
235
+
221
236
# Scorecard test image scaffold/build/push.
222
237
.PHONY : image-build-scorecard-test image-push-scorecard-test image-push-scorecard-test-multiarch
223
238
0 commit comments