commit 475a922167a3991f10d84f2475f6667d3439b471 Author: René Jochum Date: Sat Sep 10 07:19:00 2022 +0200 Initial commit diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..2c26150 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,29 @@ +--- +kind: pipeline +type: docker +name: default + +platform: + os: linux + arch: amd64 + +trigger: + event: + - cron + - custom + - tag + +steps: +- name: build + image: plugins/docker + settings: + registry: registry.fk.jochum.dev + username: robot$jochum+drone + password: + from_secret: registry.fk.jochum.dev-robot + repo: registry.fk.jochum.dev/jochum/hugo + build_args: + HUGO_VERSION=${DRONE_TAG} + auto_tag: true + tags: + - latest \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..a6978b1 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,11 @@ +FROM registry.fk.jochum.dev/docker_hub_cache/library/golang:1.19 + +ARG HUGO_VERSION + +ENV GOPATH=/go + +RUN set -ex; \ + git clone https://github.com/gohugoio/hugo.git && \ + cd hugo && \ + git checkout "$HUGO_VERSION" && \ + go install --tags extended \ No newline at end of file