(maint) move to harness.drone.io
This commit is contained in:
parent
e1d38a4009
commit
463233b421
11 changed files with 236 additions and 817 deletions
|
|
@ -1,25 +0,0 @@
|
|||
FROM arm32v6/golang:1.14-alpine AS build
|
||||
|
||||
RUN apk add --no-cache git build-base && \
|
||||
git clone --branch v0.70.0 https://github.com/gohugoio/hugo.git && \
|
||||
cd hugo/ && \
|
||||
CGO_ENABLED=0 go build -ldflags "-s -w -X github.com/gohugoio/hugo/common/hugo.buildDate=$(date +%Y-%m-%dT%H:%M:%SZ) -X github.com/gohugoio/hugo/common/hugo.commitHash=$(git rev-parse --short HEAD)" -o /tmp/hugo . && \
|
||||
CGO_ENABLED=1 go build -tags extended -ldflags "-s -w -X github.com/gohugoio/hugo/common/hugo.buildDate=$(date +%Y-%m-%dT%H:%M:%SZ) -X github.com/gohugoio/hugo/common/hugo.commitHash=$(git rev-parse --short HEAD)" -o /tmp/hugo-extended
|
||||
|
||||
FROM plugins/base:linux-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"
|
||||
|
||||
RUN apk --no-cache add git libc6-compat libstdc++
|
||||
|
||||
ENV PLUGIN_HUGO_ARCH=arm
|
||||
ENV PLUGIN_HUGO_SHIPPED_VERSION=0.70.0
|
||||
|
||||
COPY --from=build /tmp/hugo /bin/hugo
|
||||
COPY --from=build /tmp/hugo-extended /bin/hugo-extended
|
||||
|
||||
ADD release/linux/arm/drone-hugo /bin/
|
||||
ENTRYPOINT ["/bin/drone-hugo"]
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
# escape=`
|
||||
FROM plugins/base:windows-1803
|
||||
FROM plugins/base:windows-ltsc2022-amd64
|
||||
|
||||
LABEL maintainer="Drone.IO Community <drone-dev@googlegroups.com>" `
|
||||
org.label-schema.name="Drone Mercurial" `
|
||||
|
|
@ -17,21 +17,16 @@ manifests:
|
|||
architecture: arm64
|
||||
os: linux
|
||||
variant: v8
|
||||
-
|
||||
image: plugins/hugo:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-arm
|
||||
platform:
|
||||
architecture: arm
|
||||
os: linux
|
||||
variant: v7
|
||||
-
|
||||
image: plugins/hugo:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}windows-1803
|
||||
platform:
|
||||
architecture: amd64
|
||||
os: windows
|
||||
version: 1803
|
||||
-
|
||||
image: plugins/hugo:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}windows-1809
|
||||
platform:
|
||||
architecture: amd64
|
||||
os: windows
|
||||
version: 1809
|
||||
-
|
||||
image: plugins/hugo:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}windows-ltsc2022-amd64
|
||||
platform:
|
||||
architecture: amd64
|
||||
os: windows
|
||||
version: ltsc2022
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue