4 Commits

Author SHA1 Message Date
3wc
3dc55f3385 test: Fix CI?
All checks were successful
continuous-integration/drone/push Build is passing
2025-10-08 12:17:35 -04:00
77341b9ddf chore: publish 1.1.0+41 release
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/tag Build is passing
2025-10-04 20:18:14 -04:00
640e0937d7 Merge pull request 'feat: use smaller image + cache dir' (#5) from cache-dir into main
Some checks failed
continuous-integration/drone/push Build is failing
Reviewed-on: #5
Reviewed-by: decentral1se <decentral1se@noreply.git.coopcloud.tech>
Reviewed-by: p4u1 <p4u1@noreply.git.coopcloud.tech>
2025-10-05 00:13:51 +00:00
121b255f47 feat: use smaller image + cache dir
Some checks failed
continuous-integration/drone/pr Build is failing
2025-10-03 18:17:00 -04:00
4 changed files with 42 additions and 3 deletions

View File

@ -8,6 +8,7 @@ steps:
host: swarm-test.autonomic.zone
stack: renovate
purge: true
generate_secrets: true
deploy_key:
from_secret: drone_ssh_swarm_test
networks:

View File

@ -30,3 +30,27 @@ This recipe runs Renovate as a cronjob every hour (configurable via `CRON_SCHEDU
You can configure how Renovate behaves with a `renovate.json` file in each target repo. Renovate will not run on a repo unless this file exists. By default, Renovate will attempt to "[onboard](https://docs.renovatebot.com/self-hosted-configuration/#onboarding)" any new repo by creating a pull request to create the `renovate.json` file.
For more information please refer to the [Renovate documentation](https://docs.renovatebot.com/).
## Using Renovate for coop-cloud recipes
If you store your recipe .env files in git, you can use Renovate to automatically bump recipe versions. To do this, add the following to the end of your `renovate.json` (courtesy of p4u1):
```json
{
"customManagers": [
{
"customType": "regex",
"managerFilePatterns": [
"/^servers\\/.*\\/.*\\.env$/"
],
"matchStrings": [
"(RECIPE|TYPE)=(?<depName>.*?):(?<currentValue>.*.*?)"
],
"datasourceTemplate": "gitea-tags",
"depNameTemplate": "coop-cloud/{{depName}}",
"registryUrlTemplate": "https://git.coopcloud.tech/"
}
]
}
```

View File

@ -1,7 +1,7 @@
services:
app:
# Use "full" since the non-full version installs tools at runtime
image: "renovate/renovate:41-full"
# Docs recommend using the non-full image and use a volume for caching downloaded binaries
image: "renovate/renovate:41"
healthcheck:
disable: true
deploy:
@ -10,11 +10,15 @@ services:
labels:
- "swarm.cronjob.enable=true"
- "swarm.cronjob.schedule=${CRON_SCHEDULE}"
- "coop-cloud.${STACK_NAME}.version=1.0.1+41-full"
- "coop-cloud.${STACK_NAME}.version=1.1.0+41"
restart_policy:
condition: none
environment:
- RENOVATE_TOKEN_FILE=/run/secrets/renovate_token
# This is already the default, we're just being explicit since they've moved it before
- RENOVATE_BASE_DIR=/tmp/renovate
volumes:
- renovate-data:/tmp/renovate
secrets:
- renovate_token
configs:
@ -33,3 +37,6 @@ configs:
name: ${STACK_NAME}_app_entrypoint_${APP_ENTRYPOINT_VERSION}
file: entrypoint.sh.tmpl
template_driver: golang
volumes:
renovate-data:

7
release/1.1.0+41 Normal file
View File

@ -0,0 +1,7 @@
The previous release used the "-full" renovate image which is 6 gigabytes
but doesn't install tools at runtime. Apparently the docs discourage this, so
this release moves to using the "non-full" image.
When renovate detects e.g. a golang dependency, it will now download a golang toolchain
and store it in a persistent volume. This means the total disk usage of the tool should
be much lower for most users.