Commit Graph

9 Commits

Author SHA1 Message Date
surtur 6e1039893d
ci,dockerfile: switch to immawanderer/alpine-hugo
All checks were successful
continuous-integration/drone/push Build is passing
2022-08-31 21:46:29 +02:00
surtur 9ae12826a8
dockerfile: migrate to docker frontend v1.3
All checks were successful
continuous-integration/drone/push Build is passing
2022-08-08 16:47:39 +02:00
wanderer 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
surtur 30be2871f2
nginx: redirect 404 to /404.html
All checks were successful
continuous-integration/drone/push Build is passing
2022-04-05 16:27:51 +02:00
surtur 7222724254
fix: pin fedora-hugo to tag linux-amd64
All checks were successful
continuous-integration/drone/push Build is passing
...which is in fact "rolling" but not called "latest" so hadolint
remains happy
2022-03-20 19:02:50 +01:00
wanderer 8a1821c416
Add info about DNSCrypt resolver (#29)
All checks were successful
continuous-integration/drone/push Build is passing
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>
2021-08-08 00:36:37 +02:00
wanderer d6510fbd9b
chore: define a FROM alias (#26)
All checks were successful
continuous-integration/drone/push Build is passing
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>
2021-01-24 16:15:28 +01:00
surtur eab16418c8
feat: switch to alpine base+edit nginx.conf w/sed
All checks were successful
continuous-integration/drone/push Build is passing
* use epoll
* etag off
* server_tokens off
* tcp_{nopush,nodelay} on
* s/spaces/tabs/
2020-11-25 15:39:35 +01:00
wanderer 41099802c2
docker-compose deployment (#18)
All checks were successful
continuous-integration/drone/push Build is passing
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>
2020-10-03 21:00:19 +02:00