Removed i386 compile step as there is no pre compiled i386 hugo version available at the moment
This commit is contained in:
parent
f19dc24306
commit
0f74e0fa16
@ -7,4 +7,3 @@ set -x
|
|||||||
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -ldflags "-X main.build=${DRONE_BUILD_NUMBER}" -a -tags netgo -o release/linux/amd64/drone-hugo github.com/drone-plugins/drone-hugo/cmd/drone-hugo
|
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -ldflags "-X main.build=${DRONE_BUILD_NUMBER}" -a -tags netgo -o release/linux/amd64/drone-hugo github.com/drone-plugins/drone-hugo/cmd/drone-hugo
|
||||||
GOOS=linux GOARCH=arm64 CGO_ENABLED=0 go build -ldflags "-X main.build=${DRONE_BUILD_NUMBER}" -a -tags netgo -o release/linux/arm64/drone-hugo github.com/drone-plugins/drone-hugo/cmd/drone-hugo
|
GOOS=linux GOARCH=arm64 CGO_ENABLED=0 go build -ldflags "-X main.build=${DRONE_BUILD_NUMBER}" -a -tags netgo -o release/linux/arm64/drone-hugo github.com/drone-plugins/drone-hugo/cmd/drone-hugo
|
||||||
GOOS=linux GOARCH=arm CGO_ENABLED=0 GOARM=7 go build -ldflags "-X main.build=${DRONE_BUILD_NUMBER}" -a -tags netgo -o release/linux/arm/drone-hugo github.com/drone-plugins/drone-hugo/cmd/drone-hugo
|
GOOS=linux GOARCH=arm CGO_ENABLED=0 GOARM=7 go build -ldflags "-X main.build=${DRONE_BUILD_NUMBER}" -a -tags netgo -o release/linux/arm/drone-hugo github.com/drone-plugins/drone-hugo/cmd/drone-hugo
|
||||||
GOOS=linux GOARCH=386 CGO_ENABLED=0 go build -ldflags "-X main.build=${DRONE_BUILD_NUMBER}" -a -tags netgo -o release/linux/i386/drone-hugo github.com/drone-plugins/drone-hugo/cmd/drone-hugo
|
|
@ -1,22 +0,0 @@
|
|||||||
FROM plugins/base:i386
|
|
||||||
|
|
||||||
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/i386/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…
Reference in New Issue
Block a user