@@ -706,9 +706,13 @@ release: clean-release ## Build and push container images using the latest git t
706
706
# Set the manifest image to the production bucket.
707
707
$(MAKE ) manifest-modification REGISTRY=$(PROD_REGISTRY )
708
708
# # 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 )
710
712
# # 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
712
716
713
717
.PHONY : manifest-modification
714
718
manifest-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
721
725
$(MAKE ) set-manifest-image \
722
726
MANIFEST_IMG=$(REGISTRY ) /$(KUBEADM_CONTROL_PLANE_IMAGE_NAME ) MANIFEST_TAG=$(RELEASE_TAG ) \
723
727
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"
727
728
$(MAKE ) set-manifest-pull-policy PULL_POLICY=IfNotPresent TARGET_RESOURCE=" ./config/default/manager_pull_policy.yaml"
728
729
$(MAKE ) set-manifest-pull-policy PULL_POLICY=IfNotPresent TARGET_RESOURCE=" ./bootstrap/kubeadm/config/default/manager_pull_policy.yaml"
729
730
$(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"
730
737
$(MAKE ) set-manifest-pull-policy PULL_POLICY=IfNotPresent TARGET_RESOURCE=" $( CAPD_DIR) /config/default/manager_pull_policy.yaml"
731
738
739
+
732
740
.PHONY : release-manifests
733
741
release-manifests : $(RELEASE_DIR ) $(KUSTOMIZE ) $(RUNTIME_OPENAPI_GEN ) # # Build the manifests to publish with a release
734
742
# Build core-components.
0 commit comments