From 5fe1bf270b8cfd4fc941108419b4aa86a1215e7f Mon Sep 17 00:00:00 2001 From: Allison Reinheimer Moore Date: Wed, 3 Apr 2024 17:00:14 -0400 Subject: [PATCH 1/3] Update Makefile to add platform prefix when uploading via make stage --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index cc251c198..5634e7110 100644 --- a/Makefile +++ b/Makefile @@ -12,12 +12,12 @@ STAGING_URL="https://docs-mongodb-org-stg.s3.us-east-2.amazonaws.com" prefix: ifdef COMMIT_HASH ifdef PATCH_ID -PREFIX = $(COMMIT_HASH)/$(PATCH_ID)/$(GATSBY_PARSER_BRANCH)/$(GATSBY_SITE) +PREFIX = platform/$(COMMIT_HASH)/$(PATCH_ID)/$(GATSBY_PARSER_BRANCH)/$(GATSBY_SITE) else -PREFIX = $(COMMIT_HASH)/$(GATSBY_PARSER_BRANCH)/$(GATSBY_SITE) +PREFIX = platform/$(COMMIT_HASH)/$(GATSBY_PARSER_BRANCH)/$(GATSBY_SITE) endif else -PREFIX = $(GATSBY_PARSER_BRANCH)/$(GATSBY_SITE) +PREFIX = platform/$(GATSBY_PARSER_BRANCH)/$(GATSBY_SITE) endif stage: prefix From 167160fb498e8cf85ed364061b8af4dd888e688d Mon Sep 17 00:00:00 2001 From: Allison Reinheimer Moore Date: Wed, 3 Apr 2024 17:04:46 -0400 Subject: [PATCH 2/3] fix staging URL value --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 5634e7110..1ce9cd849 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ GIT_BRANCH=$(shell git rev-parse --abbrev-ref HEAD) USER=$(shell whoami) STAGING_BUCKET=docs-mongodb-org-stg -STAGING_URL="https://docs-mongodb-org-stg.s3.us-east-2.amazonaws.com" +STAGING_URL="https://docs-mongodbcom-staging.corp.mongodb.com" -include .env.production .PHONY: stage @@ -12,12 +12,12 @@ STAGING_URL="https://docs-mongodb-org-stg.s3.us-east-2.amazonaws.com" prefix: ifdef COMMIT_HASH ifdef PATCH_ID -PREFIX = platform/$(COMMIT_HASH)/$(PATCH_ID)/$(GATSBY_PARSER_BRANCH)/$(GATSBY_SITE) +PREFIX = $(COMMIT_HASH)/$(PATCH_ID)/$(GATSBY_PARSER_BRANCH)/$(GATSBY_SITE) else -PREFIX = platform/$(COMMIT_HASH)/$(GATSBY_PARSER_BRANCH)/$(GATSBY_SITE) +PREFIX = $(COMMIT_HASH)/$(GATSBY_PARSER_BRANCH)/$(GATSBY_SITE) endif else -PREFIX = platform/$(GATSBY_PARSER_BRANCH)/$(GATSBY_SITE) +PREFIX = $(GATSBY_PARSER_BRANCH)/$(GATSBY_SITE) endif stage: prefix From 621d8e1cef9e9f55d3aad2c9f518f49fe4803550 Mon Sep 17 00:00:00 2001 From: Allison Reinheimer Moore Date: Wed, 3 Apr 2024 17:05:23 -0400 Subject: [PATCH 3/3] accidental overwrite --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 1ce9cd849..f2de7fdf3 100644 --- a/Makefile +++ b/Makefile @@ -12,12 +12,12 @@ STAGING_URL="https://docs-mongodbcom-staging.corp.mongodb.com" prefix: ifdef COMMIT_HASH ifdef PATCH_ID -PREFIX = $(COMMIT_HASH)/$(PATCH_ID)/$(GATSBY_PARSER_BRANCH)/$(GATSBY_SITE) +PREFIX = platform/$(COMMIT_HASH)/$(PATCH_ID)/$(GATSBY_PARSER_BRANCH)/$(GATSBY_SITE) else -PREFIX = $(COMMIT_HASH)/$(GATSBY_PARSER_BRANCH)/$(GATSBY_SITE) +PREFIX = platform/$(COMMIT_HASH)/$(GATSBY_PARSER_BRANCH)/$(GATSBY_SITE) endif else -PREFIX = $(GATSBY_PARSER_BRANCH)/$(GATSBY_SITE) +PREFIX = platform/$(GATSBY_PARSER_BRANCH)/$(GATSBY_SITE) endif stage: prefix