mirror of https://github.com/docker/docs.git
fixed the deployment script
This commit is contained in:
parent
794a8f38cb
commit
4012ba9c03
|
|
@ -0,0 +1,2 @@
|
||||||
|
[config]
|
||||||
|
command = bash site/deploy.sh
|
||||||
|
|
@ -1,2 +0,0 @@
|
||||||
[config]
|
|
||||||
command = bash deploy.sh
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
# Install go if needed
|
# Install go if needed
|
||||||
|
cd site
|
||||||
export TOOLS_ROOT_DIR=$HOME/site/deployments/tools
|
export TOOLS_ROOT_DIR=$HOME/site/deployments/tools
|
||||||
export HUGOROOT=$TOOLS_ROOT_DIR/hugo
|
export HUGOROOT=$TOOLS_ROOT_DIR/hugo
|
||||||
export PATH=$PATH:$HUGOROOT
|
export PATH=$PATH:$HUGOROOT
|
||||||
|
|
@ -13,9 +14,9 @@ if [ ! -e "$HUGOROOT" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
export BASE_URL="https://$WEBSITE_HOSTNAME"
|
export BASE_URL="https://$WEBSITE_HOSTNAME"
|
||||||
if [ "$WEBSITE_HOSTNAME" == "docker-toolbox.azurewebsites.net" ]; then
|
#if [ "$WEBSITE_HOSTNAME" == "docker-toolbox.azurewebsites.net" ]; then
|
||||||
export BASE_URL="https://toolbox.docker.com"
|
# export BASE_URL="https://toolbox.docker.com"
|
||||||
fi
|
#fi
|
||||||
|
|
||||||
# Create and store unique artifact name
|
# Create and store unique artifact name
|
||||||
hugo_0.14_windows_amd64.exe --baseUrl=$BASE_URL -d $DEPLOYMENT_TARGET
|
hugo_0.14_windows_amd64.exe --baseUrl=$BASE_URL -d $DEPLOYMENT_TARGET
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue