Skip to content

Commit c773226

Browse files
GuruPKKatsansone
authored andcommitted
Update Makefile
1 parent ec3e2da commit c773226

File tree

1 file changed

+18
-9
lines changed

1 file changed

+18
-9
lines changed

Makefile

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,12 @@ PRODUCTION_BUCKET=docs-mongodb-org-prd
3232
PROJECT=kubernetes-operator
3333
STGPREFIX=kubernetes-operator
3434
PREFIX=kubernetes-operator
35-
36-
ifeq ($(ENV), 'dotcom')
37-
STAGING_URL="https://mongodbcom-cdn.website.staging.corp.mongodb.com"
38-
STAGING_BUCKET=docs-mongodb-org-dotcomstg
39-
PRODUCTION_URL="https://mongodb.com"
40-
PRODUCTION_BUCKET=docs-mongodb-org-dotcomprd
41-
PREFIX=docs-qa/kubernetes-operator
42-
STGPREFIX=docs/kubernetes-operator
43-
endif
35+
DOTCOM_STAGING_URL="https://mongodbcom-cdn.website.staging.corp.mongodb.com"
36+
DOTCOM_STAGING_BUCKET=docs-mongodb-org-dotcomstg
37+
DOTCOM_PRODUCTION_URL="https://mongodb.com"
38+
DOTCOM_PRODUCTION_BUCKET=docs-mongodb-org-dotcomprd
39+
DOTCOM_PREFIX=docs-qa/kubernetes-operator
40+
DOTCOM_STGPREFIX=docs/kubernetes-operator
4441

4542
# Parse our published-branches configuration file to get the name of
4643
# the current "stable" branch. This is weird and dumb, yes.
@@ -111,6 +108,12 @@ stage:
111108
@echo "\n\nHosted at ${STAGING_URL}/${STGPREFIX}/${USER}/${GIT_BRANCH}/index.html"
112109

113110

111+
mut-publish build/${GIT_BRANCH}/html ${DOTCOM_STAGING_BUCKET} --prefix=${DOTCOM_STGPREFIX} --stage ${ARGS}
112+
@echo "\n\nHosted at ${DOTCOM_STAGING_URL}/${DOTCOM_STGPREFIX}/${USER}/${GIT_BRANCH}/index.html"
113+
114+
115+
116+
114117
#################################################################
115118
#### DEPLOY KUBERNETES OPERATOR DOCUMENTATION TO PRODUCTION ####
116119
#################################################################
@@ -121,6 +124,12 @@ deploy: build/public
121124

122125
@echo "\n\nHosted at ${PRODUCTION_URL}/${PREFIX}/index.html"
123126

127+
128+
mut-publish build/public ${DOTCOM_PRODUCTION_BUCKET} --prefix=${DOTCOM_PREFIX} --deploy --redirect-prefix='${PROJECT}' ${ARGS}
129+
130+
@echo "\n\nHosted at ${DOTCOM_PRODUCTION_URL}/${DOTCOM_PREFIX}/index.html"
131+
132+
124133
$(MAKE) deploy-search-index
125134

126135
## Update the search index for this branch

0 commit comments

Comments
 (0)