Commit Graph

12 Commits

Author SHA1 Message Date
95135c06f9
ci: start signing .drone.yml
All checks were successful
continuous-integration/drone/push Build is passing
2022-09-24 21:19:09 +03:00
385e760319
ci,dockerfile: use full namespace image ident.
All checks were successful
continuous-integration/drone/push Build is passing
2022-09-24 21:15:03 +03:00
553c5777f4
ci: switch to immawanderer/alpine-hugo image
All checks were successful
continuous-integration/drone/push Build is passing
2022-09-17 12:50:28 +02:00
a36defdb53
run dignostic steps on failure
All checks were successful
continuous-integration/drone/push Build is passing
2022-03-22 20:07:57 +01:00
84c5353208
ci: update submodules in a separate step
All checks were successful
continuous-integration/drone/push Build is passing
also, tweak step dependency graph a little
2022-03-22 17:31:39 +01:00
96d9de7e7f
ci: pull directly in each (relevant) pipeline
All checks were successful
continuous-integration/drone/push Build is passing
2022-03-22 17:07:50 +01:00
0035e4feea
ci(fedora-hugo): :latest -> :linux-amd64
All checks were successful
continuous-integration/drone/push Build is passing
2022-03-22 16:33:09 +01:00
a5a0af6c21
ci: fix yaml formatting
All checks were successful
continuous-integration/drone/push Build is passing
2022-03-22 16:16:33 +01:00
a10f717a30
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 9ec93b4
2021-07-28 14:40:39 +02:00
9ec93b4352
ci/compose: add project name using a drone env var
All checks were successful
continuous-integration/drone/push Build is passing
there was an issue where https://git.dotya.ml/dotya.ml/homepage
containers were getting orphaned when this project was deployed.

messages like the following were printed:
Removing orphan container "src_homepage_2"
Removing orphan container "src_homepage_4"
Removing orphan container "src_reverse-proxy_1"
Removing orphan container "src_homepage_3"
Removing orphan container "src_homepage_1"

The author of the accepted answer of a related SO thread links to
docker-compose documentation, explaining how setting a project variable
should resolve this.

the COMPOSE_PROJECT_NAME environment variable is likely the same for
both projects in question here (homepage and docs) as they're both being
deployed by drone from the /drone/src directory, which is also set by
drone as the WORKDIR). basename - here src - is used as the project name
if not specified otherwise.

to conclude, running both [compose deployments] with a unique project
name should fix the issue.

refs:
https://stackoverflow.com/a/59173539
https://docs.docker.com/compose/reference/overview/#use--p-to-specify-a-project-name
https://docs.docker.com/compose/reference/envvars/#compose_project_name

fix #1
2021-07-24 15:36:21 +02:00
4bc2650892
ci: add a deploy step using docker-compose
All checks were successful
continuous-integration/drone/push Build is passing
docs image is built JIT from Dockerfile.
the logic for the compose file is based on the one used in
https://git.dotya.ml/dotya.ml/homepage yet the traefik part was not
used.
2021-07-24 15:17:32 +02:00
7acb7c05b2
ci: add .drone.yml
All checks were successful
continuous-integration/drone/push Build is passing
2021-03-15 11:42:49 +01:00