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/