as a result of #33:
* traefik proxy according to compose was pointing nowhere
* traefik was attempting to redirect as it used to when the site was
behind nginx, which is unneccessary now, the go app can properly
handle paths such as '/tags/'.
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
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>
chore: add scaling param to the .drone.yml
fix: issue when dc build fails due to scale
Co-authored-by: surtur <a_mirre@utb.cz>
Reviewed-on: #20
Co-Authored-By: wanderer <wanderer@noreply.git.dotya.ml>
Co-Committed-By: wanderer <wanderer@noreply.git.dotya.ml>
fix: no need to stop the container before build 🚀
* this is handled for us by docker on container re-creation
Co-authored-by: surtur <a_mirre@utb.cz>
Reviewed-on: #19
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>
refactor: positive rather than negative selection
* i.e. includes as opposed to excludes
chore: separate build and deploy pipeline
* this allows for more granular run conditions and constraints
refactor: remove redundant status==success assertion
Co-authored-by: surtur <a_mirre@utb.cz>
Reviewed-on: #16
Reviewed-by: dalahast <dalahast@noreply.git.dotya.ml>
Co-Authored-By: wanderer <wanderer@noreply.git.dotya.ml>
Co-Committed-By: wanderer <wanderer@noreply.git.dotya.ml>
chore: notifications don't need to run on PR let's say
fix: fine-tuning the limits
chore: also run notification pipeline on any branch
fix: further limit pipeline execution
fix: limit deploy step execution for master
* run notifications on PR and any branch
chore: add utilization status badges + style
Co-authored-by: surtur <a_mirre@utb.cz>
Reviewed-on: #6