Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Nomad
Commits
c0598b5b
Commit
c0598b5b
authored
2 years ago
by
HashiBot
Browse files
Options
Download
Email Patches
Plain Diff
Update generated website Makefile
parent
6bec753b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
website/Makefile
+18
-3
website/Makefile
with
18 additions
and
3 deletions
+18
-3
website/Makefile
+
18
-
3
View file @
c0598b5b
######################################################
# NOTE: This file is managed by the Digital Team's #
# Terraform configuration @ hashicorp/mktg-terraform #
######################################################
.DEFAULT_GOAL
:=
website
# Set the preview mode for the website shell to "developer" or "io"
PREVIEW_MODE
?=
developer
REPO
?=
nomad
# Enable setting alternate docker tool, e.g. 'make DOCKER_CMD=podman'
DOCKER_CMD
?=
docker
CURRENT_GIT_BRANCH
=
$$
(
git rev-parse
--abbrev-ref
HEAD
)
LOCAL_CONTENT_DIR
=
PWD
=
$
$(pwd)
DOCKER_IMAGE
=
"hashicorp/dev-portal"
DOCKER_IMAGE_LOCAL
=
"dev-portal-local"
DOCKER_RUN_FLAGS
=
-it
\
...
...
@@ -16,9 +28,12 @@ DOCKER_RUN_FLAGS=-it \
--volume
"
$(PWD)
/redirects.js:/app/redirects.js"
\
--volume
"next-dir:/app/website-preview/.next"
\
--volume
"
$(PWD)
/.env:/app/.env"
\
-e
"REPO=nomad"
\
-e
"PREVIEW_MODE=io"
-e
"REPO=
$(REPO)
"
\
-e
"PREVIEW_FROM_REPO=
$(REPO)
"
\
-e
"IS_CONTENT_PREVIEW=true"
\
-e
"LOCAL_CONTENT_DIR=
$(LOCAL_CONTENT_DIR)
"
\
-e
"CURRENT_GIT_BRANCH=
$(CURRENT_GIT_BRANCH)
"
\
-e
"PREVIEW_MODE=
$(PREVIEW_MODE)
"
# Default: run this if working on the website locally to run in watch mode.
.PHONY
:
website
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help