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:
@@ -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
|
||||
|
@@ -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 .
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user