To automatically renew certificates you could use Scheduled CI pipelines
stages:
# ...
- renew_ssl
renew_ssl:
stage: renew_ssl
script:
- |
if [ -z "${RENEW_SSL:-}" ]; then
exit
fi
# TODO renew command
only:
- master
I don't know if you can commit from CI job. If not using deployment key with allowed write access will be necessary.