Skip to content

Commit

Permalink
Disable confirmation requirement in pipeline
Browse files Browse the repository at this point in the history
Signed-off-by: Jeremiah Snapp <[email protected]>
  • Loading branch information
jeremiahsnapp committed Feb 4, 2022
1 parent 69ad06d commit 337147d
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ else
$(error AZURE_CLOUD must be set to "government" or "public")
endif

ifeq ($(CI), true)
CONFIRM_REQUIRED := false
else
CONFIRM_REQUIRED := true
endif

DATE_OF_PUBLISHING ?= $(shell date +%Y%m%d)
PLATFORM ?= windows
VERSION ?= $(shell cat VERSION)
Expand Down Expand Up @@ -57,18 +63,18 @@ list.versions: setup

#publish.internally: @ Publish extension internally to public or government Azure cloud
publish.internally: setup
bundle exec rake publish[deploy_to_$(DEPLOY_TYPE),$(PLATFORM),$(VERSION),$(EXTENSION_NAMESPACE),update,confirm_internal_deployment]
bundle exec rake publish[deploy_to_$(DEPLOY_TYPE),$(PLATFORM),$(VERSION),$(EXTENSION_NAMESPACE),update,confirm_internal_deployment,$(CONFIRM_REQUIRED)]

#publish.all-regions: @ Publish extension to all regions in public or government Azure cloud
publish.all-regions: setup
bundle exec rake update[deploy_to_$(DEPLOY_TYPE),$(PLATFORM),$(VERSION),$(DATE_OF_PUBLISHING),$(EXTENSION_NAMESPACE),confirm_public_deployment]
bundle exec rake update[deploy_to_$(DEPLOY_TYPE),$(PLATFORM),$(VERSION),$(DATE_OF_PUBLISHING),$(EXTENSION_NAMESPACE),confirm_public_deployment,$(CONFIRM_REQUIRED)]

#promote.single-region: @ Promote extension to a single region in public or government Azure cloud
promote.single-region: setup
ifndef REGION1
$(error REGION1 is not set)
endif
bundle exec rake promote_single_region[deploy_to_$(DEPLOY_TYPE),$(PLATFORM),$(VERSION),$(DATE_OF_PUBLISHING),$(REGION1)]
bundle exec rake promote_single_region[deploy_to_$(DEPLOY_TYPE),$(PLATFORM),$(VERSION),$(DATE_OF_PUBLISHING),$(REGION1),$(CONFIRM_REQUIRED)]

#promote.two-regions: @ Promote extension to two regions in public or government Azure cloud
promote.two-regions: setup
Expand All @@ -77,12 +83,12 @@ ifndef REGION1
else ifndef REGION2
$(error REGION2 is not set)
endif
bundle exec rake promote_two_regions[deploy_to_$(DEPLOY_TYPE),$(PLATFORM),$(VERSION),$(DATE_OF_PUBLISHING),$(REGION1),$(REGION2)]
bundle exec rake promote_two_regions[deploy_to_$(DEPLOY_TYPE),$(PLATFORM),$(VERSION),$(DATE_OF_PUBLISHING),$(REGION1),$(REGION2),$(CONFIRM_REQUIRED)]

#unpublish: @ Unpublish the azure chef extension from public or government Azure cloud
unpublish: setup
bundle exec rake unpublish_version[delete_from_$(DEPLOY_TYPE),$(PLATFORM),$(VERSION)]
bundle exec rake unpublish_version[delete_from_$(DEPLOY_TYPE),$(PLATFORM),$(VERSION),$(CONFIRM_REQUIRED)]

#delete: @ Delete the azure chef extension from public or government Azure cloud
delete: setup
bundle exec rake delete[delete_from_$(DEPLOY_TYPE),$(PLATFORM),$(EXTENSION_NAMESPACE),$(VERSION)]
bundle exec rake delete[delete_from_$(DEPLOY_TYPE),$(PLATFORM),$(EXTENSION_NAMESPACE),$(VERSION),$(CONFIRM_REQUIRED)]

0 comments on commit 337147d

Please sign in to comment.