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.
update hadolint to v2.6.0-alpine and add an IGNORE to Dockerfile to make
sure the linter is up to date and all errors are resolved, resulting ina passing build.
the ignore is added as the issue is not too big of a deal (at least not
ATM).
* 55d9852 - fix: make hadolint pass <surtur>
* 8f2e192 - about, posts: add dnscrypt <surtur>
Co-authored-by: surtur <a_mirre@utb.cz>
Reviewed-on: #29
Co-authored-by: wanderer <wanderer@noreply.git.dotya.ml>
Co-committed-by: wanderer <wanderer@noreply.git.dotya.ml>
while the existing setup works, we're following best practices of aliasing a FROM layer ✅
Co-authored-by: surtur <a_mirre@utb.cz>
Reviewed-on: #26
Co-authored-by: wanderer <wanderer@noreply.git.dotya.ml>
Co-committed-by: wanderer <wanderer@noreply.git.dotya.ml>
refactor: .drone.yml + don't run on {push,PR}
add: docker-compose-build pipeline
* general refactoring of .drone.yml
fix: incorrect dependency
* add: don't run img pull on PR
refactor: update .drone.yml logic
chore: adding docker-compose.yml
* it's in fact going to be docker-compose deployment
add: Dockerfile + update baseUrl
* also enhance footer partial that cries when a ref goes missing (such
as when a branch is merged)
Co-authored-by: surtur <a_mirre@utb.cz>
Reviewed-on: #18
Co-Authored-By: wanderer <wanderer@noreply.git.dotya.ml>
Co-Committed-By: wanderer <wanderer@noreply.git.dotya.ml>