Skip to content

Commit 7729ba4

Browse files
authored
fix: Introduce publish-manifests to Makefile (#378)
<!-- Thank you for your contribution. Before you submit the pull request: 1. Follow contributing guidelines, templates, the recommended Git workflow, and any related documentation. 2. Read and submit the required Contributor Licence Agreements (https://github.com/kyma-project/community/blob/main/CONTRIBUTING.md#agreements-and-licenses). 3. Test your changes and attach their results to the pull request. 4. Update the relevant documentation. If the pull request requires a decision, follow the [decision-making process](https://github.com/kyma-project/community/blob/main/governance.md) and replace the PR template with the [decision record template](https://github.com/kyma-project/community/blob/main/.github/ISSUE_TEMPLATE/decision-record.md). --> **Description** introduce publish-manifests to Makefile to avoid config Kustomize in the upload_assets.sh **Related issue(s)** kyma-project/modulectl#260
1 parent 2cdf995 commit 7729ba4

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/scripts/release/upload_assets.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ uploadFile() {
2727

2828
echo "PULL_BASE_REF= ${PULL_BASE_REF}"
2929

30-
cd config/manager && $(KUSTOMIZE) edit set image controller=${IMG}
31-
MODULE_VERSION=${PULL_BASE_REF} make build-manifests
30+
IMG=${IMG} make publish-manifests
3231
echo "Generated template-operator.yaml:"
3332

3433
cat template-operator.yaml

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,11 @@ configure-git-origin:
177177
build-manifests: manifests kustomize
178178
$(KUSTOMIZE) build config/overlays/deployment > template-operator.yaml
179179

180+
.PHONY: publish-manifests
181+
publish-manifests: manifests kustomize
182+
(cd config/manager/deployment && $(KUSTOMIZE) edit set image controller=${IMG})
183+
$(KUSTOMIZE) build config/overlays/deployment > template-operator.yaml
184+
180185
.PHONY: build-statefulset-manifests
181186
build-statefulset-manifests: manifests kustomize
182187
$(KUSTOMIZE) build config/overlays/statefulset > template-operator.yaml

0 commit comments

Comments
 (0)