Dasharo / dasharo-website

Dasharo website source code driven by Hugo
Apache License 2.0
2 stars 0 forks source link

[Optional] Use dockerized builder instead of local dependent bash script #12

Closed artur-rs closed 1 year ago

artur-rs commented 1 year ago

Changes in the vercel-build.sh should be needed:

#!/bin/bash

# default versions
if [ -z $GO_VERSION ]; then GO_VERSION='1.18.1'; fi
if [ -z $HUGO_VERSION ]; then HUGO_VERSION='0.105.0'; fi

# install Go
curl -sSOL https://dl.google.com/go/go${GO_VERSION}.linux-amd64.tar.gz
tar -C /usr/local -xzf go${GO_VERSION}.linux-amd64.tar.gz
export PATH=$PATH:/usr/local/go/bin

# install Hugo
echo "Installing Hugo $HUGO_VERSION..."
curl -sSOL https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_Linux-64bit.tar.gz
tar -xzf hugo_extended_${HUGO_VERSION}_Linux-64bit.tar.gz
hugo version

# run Hugo
echo "Running Hugo..."
hugo --gc --minify
artur-rs commented 1 year ago

Running the vercel-build.sh on Ubuntu 20.04 ended with fail. Can we get a README update with build section? Or prepare script with dockerized method instead.

artur-rs commented 1 year ago

Still, I'm not sure about best method to locally test the changes if we want to maintain the website in the future.

artur-rs commented 1 year ago

Resolved by: