Commit Graph

6 Commits

Author SHA1 Message Date
cfe496dcb7
embed homepage in a Go app (#33)
Some checks failed
continuous-integration/drone/push Build is failing
the entire './public' folder that Hugo produces is embedded into a
variable of 'embed.FS' type and served directly using the default http
mux that Go std offers.

ci, pre-commit, Dockerfile and compose file have all been updated
accordingly.

nginx is no longer needed to front the site files, which enabled
switching to a SCRATCH image containing just a single statically linked
"homepage" app that has all files (html, css, js) embedded.
the containers are otherwise empty (as the name SCRATCH suggests), which
further decreases potential attack surface area.

Co-authored-by: surtur <a_mirre@utb.cz>
Reviewed-on: #33
2022-08-08 15:20:50 +02:00
d0c61e4847
add yamllint [skip ci] 2022-08-02 15:13:39 +02:00
ffd7a943f4
fix .pre-commit-config.yaml [skip ci] 2022-07-02 17:20:01 +02:00
a8ac5aa872
pre-commit: check compose file
All checks were successful
continuous-integration/drone/push Build is passing
2022-07-02 17:18:27 +02:00
564d834865
pre-commit: add yaml check [skip ci] 2021-09-22 08:37:42 +02:00
666bb63477
add pre-commit config
All checks were successful
continuous-integration/drone/push Build is passing
it's sane to have some pre-flight checks, pre-commit makes it easy.
ref: https://pre-commit.com/
2021-08-21 21:01:05 +02:00