Added version attribute to define hugo version used in pipeline

This commit is contained in:
cbrgm
2018-05-13 01:38:59 +02:00
parent 2686124968
commit ea27a59bc4
5 changed files with 43 additions and 27 deletions
+2 -3
View File
@@ -5,12 +5,11 @@ LABEL version="latest"
ARG HUGO_VERSION
COPY ./drone-hugo.sh /bin/
RUN chmod +x /bin/drone-hugo.sh
RUN apk update
RUN chmod +x bin/drone-hugo.sh
RUN mkdir /temp/
RUN wget https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_${HUGO_VERSION}_Linux-64bit.tar.gz -P /temp
RUN tar xzvf /temp/hugo_${HUGO_VERSION}_Linux-64bit.tar.gz -C /temp/
RUN wget -O- https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_${HUGO_VERSION}_Linux-64bit.tar.gz | tar xz -C /temp/
RUN mv /temp/hugo /bin/hugo
RUN rm -rf /temp