mirror of
https://github.com/drone-plugins/drone-hugo.git
synced 2026-06-14 05:12:49 +08:00
Added version attribute to define hugo version used in pipeline
This commit is contained in:
+2
-3
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user