Commit Graph

131 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
34bf219bde
ci: :latest -> :linux-amd64
All checks were successful
continuous-integration/drone/push Build is passing
2022-03-20 20:33:55 +01:00
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
0247a036a9
chore: add watch for nightly cron to .drone.yml 2020-10-03 22:41:21 +02:00
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
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
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
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
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
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
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
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
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
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
114804c437
refactor: ${DRONE_FAILED_STEPS} yields nothing as of now, removing 2020-07-09 11:36:41 +02:00
b65061cbbe
fix: was chown instead of --chown
All checks were successful
continuous-integration/drone/push Build is passing
2020-07-09 11:33:34 +02:00
61b6750403
fix: now sshpass really saves the day
Some checks failed
continuous-integration/drone/push Build is failing
2020-07-09 11:32:24 +02:00
8ffe8ccc4a
fix: sshpass saves us all now
Some checks failed
continuous-integration/drone/push Build is failing
2020-07-09 11:11:46 +02:00