Added version attribute to define hugo version used in pipeline
This commit is contained in:
parent
2686124968
commit
ea27a59bc4
5 changed files with 43 additions and 27 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue