Files
Homelab/.gitea/workflows/certificates.yaml
Matthew Pomes fdc1c4b6cb
All checks were successful
Deploy homelab / Deploy (push) Successful in 2s
Restart nginx container after renewing certificates
2025-09-03 00:09:44 -05:00

28 lines
708 B
YAML

name: "Build certificates"
on:
workflow_dispatch:
# Note: this doesn't work on current gitea for some reason?
build_certs:
description: "Build certificates from scratch"
type: "boolean"
required: true
default: false
schedule: "@weekly"
env:
TZ: "America/Chicago"
jobs:
deploy:
name: "Setup/Renew certificates"
runs-on: "homelab"
steps:
- name: "Build certificates"
if: inputs.build_certs
run: |
cd /home/matthew/homelab
bash ./build-certs.sh
- name: "Renew certificates"
run: |
cd /home/matthew/homelab
docker compose run --rm certbot renew
docker restart homelab-web-1