Commit Graph

135 Commits

Author SHA1 Message Date
surtur 9bbfef4c39
compose: use docker compose, not docker-compose
All checks were successful
continuous-integration/drone/push Build is passing
* get on with the times...plus the old form does not like the compose
  file anymore
* also add an empty volume to make compose happy
2024-05-28 22:45:53 +02:00
surtur 131e84bd17
ci,dockerfile: bump to go1.21
All checks were successful
continuous-integration/drone/push Build is passing
2023-08-13 16:03:13 +02:00
surtur 9c6215d9a1
chore: bump hugo to v0.115.3
All checks were successful
continuous-integration/drone/push Build is passing
the hugo bump required updating some configuration fields, those are
thus part of this change set
2023-07-20 16:21:41 +02:00
surtur 3dbafe08e7
ci,dockerfile,gomod: bump base to go1.20
All checks were successful
continuous-integration/drone/push Build is passing
2023-07-19 22:39:12 +02:00
leo 3020a43ca2
hotfix: disable traefik, scale down homepage
All checks were successful
continuous-integration/drone/push Build is passing
2023-01-31 01:21:02 +01:00
leo 3b36350faf
compose: adapt to changed socket location
All checks were successful
continuous-integration/drone/push Build is passing
2023-01-30 17:22:11 +01:00
surtur b720c1224b
chore(ci,dockerfile): bump hugo to v0.105.0
All checks were successful
continuous-integration/drone/push Build is passing
2022-10-28 23:32:35 +02:00
surtur 5c258c0b8b
chore(ci,dockerfile): bump hugo to v0.104.1
All checks were successful
continuous-integration/drone/push Build is passing
2022-09-28 16:02:48 +02:00
surtur b023e6bcba
chore(ci,dockerfile): bump hugo to v0.103.0
All checks were successful
continuous-integration/drone/push Build is passing
2022-09-17 13:18:43 +02:00
surtur f363952d13
ci(compose): split long cmd to multiple lines
All checks were successful
continuous-integration/drone/push Build is passing
2022-09-09 14:47:09 +02:00
surtur 9b08a69426
ci: add 'check compose' step to pipelines
All checks were successful
continuous-integration/drone/push Build is passing
2022-09-09 14:37:37 +02:00
surtur 3b9343debf
chore(compose,ci): always specify registry
All checks were successful
continuous-integration/drone/push Build is passing
2022-09-09 12:56:04 +02:00
surtur 937621ae7e
ci(fix): use correct tag (broken by c88a02c)
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is passing
additionally, show hugo version on pull
2022-09-04 20:30:05 +02:00
surtur c88a02c101
chore: bump hugo to v0.102.2
All checks were successful
continuous-integration/drone/push Build is passing
2022-09-01 01:42:11 +02:00
surtur 04eeda81c7
ci: start signing .drone.yml
All checks were successful
continuous-integration/drone/push Build is passing
2022-09-01 01:36:06 +02:00
surtur 8afe3e0524
chore: bump hugo to v0.102.1
All checks were successful
continuous-integration/drone/push Build is passing
2022-09-01 01:19:15 +02:00
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 bcd6f3bf1a
ci: unify GOFLAGS with dockerfile
All checks were successful
continuous-integration/drone/push Build is passing
2022-08-23 13:36:45 +02:00
surtur c9553bf7e5
ci: add 'VCS_REF' build arg during compose build
All checks were successful
continuous-integration/drone/push Build is passing
2022-08-08 16:51:03 +02:00
surtur a894b9eff5
ci: bump hadolint to v2.10.0-alpine
All checks were successful
continuous-integration/drone/push Build is passing
2022-08-08 16:35:20 +02:00
surtur c3a29bef55
fix: {ci race condition,traefik}
All checks were successful
continuous-integration/drone/push Build is passing
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/'.
2022-08-08 15:27:27 +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 b67aaf5aa3
ci: use upstream alpine image for stagin runs
All checks were successful
continuous-integration/drone/push Build is passing
2022-03-20 22:04:56 +01:00
surtur 34bf219bde
ci: :latest -> :linux-amd64
All checks were successful
continuous-integration/drone/push Build is passing
2022-03-20 20:33:55 +01:00
surtur a0e38dd2ef
ci: perform hadolint check in deploy pipeline
All checks were successful
continuous-integration/drone/push Build is passing
...a failsafe of sorts
2022-03-20 20:18:45 +01:00
surtur 66528553a3
fix: correctly indent and init yaml documents
All checks were successful
continuous-integration/drone/push Build is passing
still some lines are over 80 characters, that needs fixing, too
2022-03-20 20:15:28 +01:00
surtur 09a8c3fb60
chore: bump hadolint to v2.9.1-alpine
All checks were successful
continuous-integration/drone/push Build is passing
2022-03-20 19:05:00 +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
surtur 6425917e1c
fix(ci): specify the project before the up command
All checks were successful
continuous-integration/drone/push Build is passing
* compose ignores the project value if specified later
* issue introduced in ebd51c2
2021-07-28 14:39:10 +02:00
surtur ebd51c2d54
ci/compose: add project name using a drone env var
All checks were successful
continuous-integration/drone/push Build is passing
ref: dotya.ml/docs#1
2021-07-24 15:46:23 +02:00
surtur a72f41d56e
cbp: pin hadolint version
All checks were successful
continuous-integration/drone/push Build is passing
* atm to 2.0.0-alpine
2021-03-25 12:31:54 +01:00
surtur b58f935123
ci: enable building with BuildKit for Compose
All checks were successful
continuous-integration/drone/push Build is passing
ref: https://www.docker.com/blog/faster-builds-in-compose-thanks-to-buildkit-support/
2021-03-09 10:17:14 +01:00
surtur 6b52682f57
ci: split build into build+deploy steps
All checks were successful
continuous-integration/drone/push Build is passing
* build with --no-cache of course
2021-03-09 10:01:23 +01:00
wanderer e10bbd74f8
chore: add Hadolint Dockerfile linting (#27)
All checks were successful
continuous-integration/drone/push Build is passing
as per #22
fixes #22

* update PR pipeline in .drone.yml
* add .hadolint.yaml

Co-authored-by: surtur <a_mirre@utb.cz>
Reviewed-on: #27
Co-authored-by: wanderer <wanderer@noreply.git.dotya.ml>
Co-committed-by: wanderer <wanderer@noreply.git.dotya.ml>
2021-02-16 16:11:24 +01:00
surtur 83d300260c
feat: route deploy pipeline to main runner
All checks were successful
continuous-integration/drone/push Build is passing
2020-10-15 16:43:29 +02:00
surtur 8deb3583d4
fix: test builds on PRs failing to run
All checks were successful
continuous-integration/drone/push Build is passing
2020-10-09 23:08:15 +02:00
surtur 4801a792b6
chore: add --remove-orphans to the build command
All checks were successful
continuous-integration/drone/push Build is passing
2020-10-05 08:39:03 +02:00
wanderer 2efd79e1e4
fix: docker-compose build issue (#20)
All checks were successful
continuous-integration/drone/push Build is passing
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>
2020-10-04 16:29:51 +02:00
surtur 384177911c
fix: syntax error in 0247a03 cron watch
All checks were successful
continuous-integration/drone/push Build is passing
2020-10-03 22:44:03 +02:00
surtur 0247a036a9
chore: add watch for nightly cron to .drone.yml 2020-10-03 22:41:21 +02:00
wanderer 50ea242c33
docker-compose hotfix (#19)
All checks were successful
continuous-integration/drone/push Build is passing
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>
2020-10-03 21:25:52 +02: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
surtur 112e77ce67
chore: add branch constraints for deploy pipeline
All checks were successful
continuous-integration/drone/push Build is passing
2020-10-03 16:00:49 +02:00
wanderer f5353973c2
general .drone.yml clean-up (#16)
All checks were successful
continuous-integration/drone/push Build is passing
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>
2020-09-25 20:57:33 +02:00
wanderer cd791c4298
Adding status badges + limiting step execution (#6)
All checks were successful
continuous-integration/drone/push Build is passing
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
2020-09-01 06:36:53 +02:00
surtur a546004c7b
chore: updated the pull pipeline
All checks were successful
continuous-integration/drone/push Build is passing
2020-07-13 16:34:10 +02:00
surtur 165cea6f38
chore: give 'pull' its own pipeline
All checks were successful
continuous-integration/drone/push Build is passing
2020-07-13 16:30:09 +02:00
surtur 694f580997
feat: pull image in a separate step
All checks were successful
continuous-integration/drone/push Build is passing
2020-07-13 15:52:30 +02:00
surtur 643926ab5e
refactor: sshpass is now part of the image
All checks were successful
continuous-integration/drone/push Build is passing
* and also a redundant whitespace removed
2020-07-09 12:51:43 +02:00
surtur 0f112e9522
refactor: no need for verbosity now
All checks were successful
continuous-integration/drone/push Build is passing
2020-07-09 11:37:24 +02:00