Add Dockerfile and .woodpecker.yml
All checks were successful
ci/woodpecker/manual/woodpecker Pipeline was successful

This commit is contained in:
Erki Aas 2023-11-19 16:35:49 +02:00
parent c4b515bf89
commit 7c21b0df66
2 changed files with 22 additions and 0 deletions

13
.woodpecker.yml Normal file
View File

@ -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

9
Dockerfile Normal file
View File

@ -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/