From 475a922167a3991f10d84f2475f6667d3439b471 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Jochum?= Date: Sat, 10 Sep 2022 07:19:00 +0200 Subject: [PATCH] Initial commit --- .drone.yml | 29 +++++++++++++++++++++++++++++ Dockerfile | 11 +++++++++++ 2 files changed, 40 insertions(+) create mode 100644 .drone.yml create mode 100644 Dockerfile 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