Skip to content

Commit

Permalink
capitalize all envs
Browse files Browse the repository at this point in the history
  • Loading branch information
robbymilo committed Dec 4, 2024
1 parent 4f04614 commit 227ee10
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions deploy-preview/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,23 @@

docker run \
-v "${PWD}/dist:/hugo/dist" \
-v "${PWD}/${source_directory}:/hugo/${website_directory}" \
-e index_file \
-e repo \
-e website_directory \
-v "${PWD}/${SOURCE_DIRECTORY}:/hugo/${WEBSITE_DIRECTORY}" \
-e INDEX_FILE \
-e REPO \
-e WEBSITE_DIRECTORY \
--rm grafana/docs-base:latest \
/bin/bash \
-c '
if [[ "${index_file}" == "true" ]]; then
if [[ "${INDEX_FILE}" == "true" ]]; then
echo "Creating custom _index.md" && \
cat > "/hugo/content/docs/${repo}/_index.md" <<EOF
cat > "/hugo/content/docs/${REPO}/_index.md" <<EOF
---
type: redirect
redirectURL: /docs/${repo}/latest/
redirectURL: /docs/${REPO}/latest/
versioned: true
---
EOF
fi
cat "/hugo/content/docs/${repo}/_index.md"
cat "/hugo/content/docs/${REPO}/_index.md"
HUGO_SSI=false hugo --environment=docs --destination=dist/ --baseURL= --minify
'

0 comments on commit 227ee10

Please sign in to comment.