From 1fc8719cf30562a411f9881ed51cc2f430f22117 Mon Sep 17 00:00:00 2001 From: Nick Dumas Date: Fri, 3 Feb 2023 01:16:14 +0000 Subject: [PATCH] adding drone-hugo dockerfile for CI/CD --- drone-hugo/Dockerfile | 7 +++++++ drone-hugo/build.sh | 4 ++++ 2 files changed, 11 insertions(+) create mode 100644 drone-hugo/Dockerfile create mode 100644 drone-hugo/build.sh diff --git a/drone-hugo/Dockerfile b/drone-hugo/Dockerfile new file mode 100644 index 0000000..d913314 --- /dev/null +++ b/drone-hugo/Dockerfile @@ -0,0 +1,7 @@ +# GitHub: https://github.com/gohugoio +# Twitter: https://twitter.com/gohugoio +# Website: https://gohugo.io/ + +FROM golang:latest AS build + +RUN go install -tags extended github.com/gohugoio/hugo@latest diff --git a/drone-hugo/build.sh b/drone-hugo/build.sh new file mode 100644 index 0000000..b410380 --- /dev/null +++ b/drone-hugo/build.sh @@ -0,0 +1,4 @@ +#! /bin/bash + +docker build -t code.ndumas.com/ndumas/drone-hugo:latest . +docker push code.ndumas.com/ndumas/drone-hugo:latest