forked from nginx/documentation
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·27 lines (23 loc) · 740 Bytes
/
build.sh
File metadata and controls
executable file
·27 lines (23 loc) · 740 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash
set -xeuo pipefail
SITE_NAME="$SITE_NAME"
if [[ -z "${SITE_NAME}" ]] ; then
echo "No SITE_NAME variable set. Unable to continue."
exit 1 ;
elif [[ "${SITE_NAME}" == 'docs-nginx-com' ]] ; then
make all
ret=$?
echo "Command exited with $ret" ;
elif [[ "${SITE_NAME}" == 'docs-staging-nginx' ]] ; then
make all-staging
ret=$?
echo "Command exited with $ret" ;
elif [[ "${SITE_NAME}" == 'docs-dev-nginx' ]] ; then
make all-dev
ret=$?
echo "Command exited with $ret" ;
else
echo "Not running in production context on docs, docs-staging, or docs-dev. Check the build settings for the current Netlify context: $CONTEXT"
ret="1"
echo "Command exited with $ret" ;
fi