@@ -706,9 +706,13 @@ release: clean-release ## Build and push container images using the latest git t
706706 # Set the manifest image to the production bucket.
707707 $(MAKE ) manifest-modification REGISTRY=$(PROD_REGISTRY )
708708 # # Build the manifests
709- $(MAKE ) release-manifests clean-release-git
709+ $(MAKE ) release-manifests
710+ # Set the development manifest image to the staging bucket.
711+ $(MAKE ) manifest-modification-dev REGISTRY=$(STAGING_REGISTRY )
710712 # # Build the development manifests
711- $(MAKE ) release-manifests-dev clean-release-git
713+ $(MAKE ) release-manifests-dev
714+ # # Clean the git artifacts modified in the release process
715+ $(MAKE ) clean-release-git
712716
713717.PHONY : manifest-modification
714718manifest-modification : # Set the manifest images to the staging/production bucket.
@@ -721,14 +725,18 @@ manifest-modification: # Set the manifest images to the staging/production bucke
721725 $(MAKE ) set-manifest-image \
722726 MANIFEST_IMG=$(REGISTRY ) /$(KUBEADM_CONTROL_PLANE_IMAGE_NAME ) MANIFEST_TAG=$(RELEASE_TAG ) \
723727 TARGET_RESOURCE=" ./controlplane/kubeadm/config/default/manager_image_patch.yaml"
724- $(MAKE ) set-manifest-image \
725- MANIFEST_IMG=$(REGISTRY ) /$(CAPD_IMAGE_NAME ) MANIFEST_TAG=$(RELEASE_TAG ) \
726- TARGET_RESOURCE=" $( CAPD_DIR) /config/default/manager_image_patch.yaml"
727728 $(MAKE ) set-manifest-pull-policy PULL_POLICY=IfNotPresent TARGET_RESOURCE=" ./config/default/manager_pull_policy.yaml"
728729 $(MAKE ) set-manifest-pull-policy PULL_POLICY=IfNotPresent TARGET_RESOURCE=" ./bootstrap/kubeadm/config/default/manager_pull_policy.yaml"
729730 $(MAKE ) set-manifest-pull-policy PULL_POLICY=IfNotPresent TARGET_RESOURCE=" ./controlplane/kubeadm/config/default/manager_pull_policy.yaml"
731+
732+ .PHONE : manifest-modification-dev
733+ manifest-modification-dev : # Set the manifest images to the staging bucket.
734+ $(MAKE ) set-manifest-image \
735+ MANIFEST_IMG=$(REGISTRY ) /$(CAPD_IMAGE_NAME ) MANIFEST_TAG=$(RELEASE_TAG ) \
736+ TARGET_RESOURCE=" $( CAPD_DIR) /config/default/manager_image_patch.yaml"
730737 $(MAKE ) set-manifest-pull-policy PULL_POLICY=IfNotPresent TARGET_RESOURCE=" $( CAPD_DIR) /config/default/manager_pull_policy.yaml"
731738
739+
732740.PHONY : release-manifests
733741release-manifests : $(RELEASE_DIR ) $(KUSTOMIZE ) $(RUNTIME_OPENAPI_GEN ) # # Build the manifests to publish with a release
734742 # Build core-components.
0 commit comments