1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-09-17 17:35:31 -04:00

always download latest Hugo build in scripts

This commit is contained in:
2019-11-09 20:47:36 -05:00
parent a17d6e8996
commit dc7816b7e6
3 changed files with 11 additions and 5 deletions

View File

@@ -1,6 +1,9 @@
#!/bin/bash
# Make sure run from parent directory...
# Make sure you run this script from the root of the site repository...
echo "Building Hugo from Docker image..."
echo "Pull latest Docker image..."
docker pull jakejarvis/hugo-custom:latest
echo "Building Hugo from image..."
docker run -v $(pwd):/src jakejarvis/hugo-custom:latest --gc --cleanDestinationDir --verbose

View File

@@ -1,6 +1,9 @@
#!/bin/bash
# Make sure run from parent directory...
# Make sure you run this script from the root of the site repository...
echo "Pull latest base image..."
docker pull jakejarvis/hugo-custom:latest
echo "Building Docker image..."
docker build -t jarv.is:develop -f Dockerfile .

View File

@@ -8,10 +8,10 @@ set -euo pipefail
BINDIR=$HOME/jj-bin
mkdir -p $BINDIR
# download forked Hugo extended binary
# download latest forked Hugo extended binary
# https://github.com/jakejarvis/hugo-custom/releases
echo "Downloading Hugo..."
curl -sS -L https://github.com/jakejarvis/hugo-custom/releases/download/v0.53-patch3/hugo-extended -o $BINDIR/hugo-extended
curl -sS -L https://github.com/jakejarvis/hugo-custom/releases/latest/download/hugo-extended -o $BINDIR/hugo-extended
chmod +x $BINDIR/hugo-extended
# download jpegoptim binary