Go implementation of the original bash plugin, containing all features
This commit is contained in:
parent
7061cf1f1d
commit
1ec3bbb482
19 changed files with 826 additions and 671 deletions
22
Dockerfile.arm
Normal file
22
Dockerfile.arm
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
FROM plugins/base:arm
|
||||
|
||||
LABEL maintainer="Drone.IO Community <drone-dev@googlegroups.com>" \
|
||||
org.label-schema.name="Drone Hugo" \
|
||||
org.label-schema.vendor="Drone.IO Community" \
|
||||
org.label-schema.schema-version="1.0"
|
||||
|
||||
ARG HUGO_VERSION
|
||||
ARG HUGO_ARCH
|
||||
ENV PLUGIN_HUGO_ARCH=$HUGO_ARCH
|
||||
ENV PLUGIN_HUGO_SHIPPED_VERSION=$HUGO_VERSION
|
||||
|
||||
ADD release/linux/arm/drone-hugo /bin/
|
||||
RUN apk update && \
|
||||
apk --no-cache add git && \
|
||||
chmod +x bin/drone-hugo && \
|
||||
mkdir /temp/ && \
|
||||
wget -O- https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_${HUGO_VERSION}_Linux-${HUGO_ARCH}.tar.gz | tar xz -C /temp/ && \
|
||||
mv /temp/hugo /bin/hugo && \
|
||||
rm -rf /temp
|
||||
|
||||
ENTRYPOINT ["/bin/drone-hugo"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue