test
Some checks failed
/ debug (push) Failing after 36s

This commit is contained in:
lubiana 2024-12-12 20:20:48 +01:00
commit e5584dd778
Signed by: lubiana
SSH key fingerprint: SHA256:vW1EA0fRR3Fw+dD/sM0K+x3Il2gSry6YRYHqOeQwrfk
957 changed files with 11340 additions and 0 deletions

12
actions/hugo/Dockerfile Normal file
View file

@ -0,0 +1,12 @@
FROM alpine:latest
RUN apk add --no-cache \
brotli \
gzip \
hugo
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]

7
actions/hugo/README.md Normal file
View file

@ -0,0 +1,7 @@
# Forgejo-Action for building hugo pages
This Action builds a hugo site and runs both gzip and brotli on static text files so a properly configured webbrowser can serve those precompressed files
The compression only works on files in the "public" folder of the actions workdir.

5
actions/hugo/action.yml Normal file
View file

@ -0,0 +1,5 @@
name: 'hugo'
despriction: 'oguh'
runs:
using: 'docker'
image: 'Dockerfile'

View file

@ -0,0 +1,6 @@
#!/bin/sh -l
sh -c "hugo"
sh -c "find ./public -type f -regex '.*\.\(css\|html\|js\|json\|svg\|xml\)$' -exec brotli --best -f {} \+ -exec gzip --best -k -f {} \+"
exit 0