From 7c21b0df6680f7878f796bf9cf8bdf26dfc84ec5 Mon Sep 17 00:00:00 2001 From: Erki Aas Date: Sun, 19 Nov 2023 16:35:49 +0200 Subject: [PATCH] Add Dockerfile and .woodpecker.yml --- .woodpecker.yml | 13 +++++++++++++ Dockerfile | 9 +++++++++ 2 files changed, 22 insertions(+) create mode 100644 .woodpecker.yml create mode 100644 Dockerfile diff --git a/.woodpecker.yml b/.woodpecker.yml new file mode 100644 index 0000000..0dbda60 --- /dev/null +++ b/.woodpecker.yml @@ -0,0 +1,13 @@ +pipeline: + docker: + image: plugins/kaniko + settings: + repo: harbor.k-space.ee/${CI_REPO} + registry: harbor.k-space.ee + tags: latest + username: + from_secret: docker_username + password: + from_secret: docker_password + when: + branch: master diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..55b83b9 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,9 @@ +FROM betterweb/hugo AS build +WORKDIR /build +COPY ./ ./ +RUN hugo --gc --minify +RUN find public -type f -regex '.*\.\(css\|html\|js\|txt\|xml\)$' -exec gzip -f -k {} \; +RUN find public -type f -regex '.*\.\(css\|html\|js\|txt\|xml\)$' -exec brotli -f -k {} \; + +FROM jitesoft/lighttpd AS run +COPY --from=build /build/public /var/www/html/