Skip to content

Commit 2b207a9

Browse files
Merge pull request #156 from razo7/fix-release-job
Small Fixes to Release Job, Push Pipeline and catalog-build
2 parents a2ffdbe + 50ae925 commit 2b207a9

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

.github/workflows/post-submit.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ on:
33
push:
44
branches:
55
- main
6-
tags:
7-
- 'v*'
86

97
permissions:
108
contents: write

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -457,8 +457,8 @@ build-tools: ## Download & build all the tools locally if necessary.
457457
# https://github.com/operator-framework/community-operators/blob/7f1438c/docs/packaging-operator.md#updating-your-existing-operator
458458
.PHONY: catalog-build
459459
catalog-build: opm ## Build a file-based catalog image.
460-
# Remove the catalog directory and Dockerfile
461-
-rm -r ${CATALOG_DIR} ${CATALOG_DOCKERFILE}
460+
# Remove the catalog directory and Dockerfile if they exist
461+
-rm -rf ${CATALOG_DIR} ${CATALOG_DOCKERFILE}
462462
@mkdir -p ${CATALOG_DIR}
463463
$(OPM) generate dockerfile ${CATALOG_DIR}
464464
$(OPM) init ${OPERATOR_NAME} \
@@ -472,7 +472,7 @@ catalog-build: opm ## Build a file-based catalog image.
472472
$(OPM) validate ${CATALOG_DIR}
473473
docker build . -f ${CATALOG_DOCKERFILE} -t ${CATALOG_IMG}
474474
# Clean up the catalog directory and Dockerfile
475-
rm -r ${CATALOG_DIR} ${CATALOG_DOCKERFILE}
475+
-rm -rf ${CATALOG_DIR} ${CATALOG_DOCKERFILE}
476476

477477
.PHONY: catalog-push
478478
catalog-push: ## Push a catalog image.
@@ -498,7 +498,7 @@ container-build: check ## Build containers
498498
make docker-build bundle-build
499499

500500
.PHONY: bundle-build-community
501-
bundle-build-community: bundle-community ## Run bundle community changes in CSV, and then build the bundle image.
501+
bundle-build-community: bundle-community-k8s ## Run bundle community changes in CSV, and then build the bundle image.
502502
docker build -f bundle.Dockerfile -t $(BUNDLE_IMG) .
503503

504504
.PHONY: container-build-community

0 commit comments

Comments
 (0)