From fdabc9b4986424b4c4246651a3d53ca7c4579f8a Mon Sep 17 00:00:00 2001 From: Jake Jarvis Date: Sat, 4 Jul 2020 20:16:35 -0400 Subject: [PATCH] switch HUGO_VERSION from ENV to ARG to allow for version overriding at build time --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index a41c5d1..8bc7177 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,9 +2,10 @@ # much easier to install Node on the Go base image than vice-versa. FROM golang:1.14-alpine -ENV HUGO_VERSION 0.73.0 +# the following version can be overridden at image build time with --build-arg +ARG HUGO_VERSION=0.73.0 # remove/comment the following line completely to build with vanilla Hugo: -ENV HUGO_EXTENDED 1 +ARG HUGO_EXTENDED=1 LABEL "com.github.actions.name"="Hugo Build" LABEL "com.github.actions.description"="Hugo as an action, with extended support and legacy versions"