Add workflow to setup/renew certificates
All checks were successful
Deploy homelab / Deploy (push) Successful in 2s

This commit is contained in:
2025-09-02 23:57:28 -05:00
parent 675be10668
commit 49d4a17550

View File

@@ -0,0 +1,24 @@
name: Build certificates
on:
workflow_dispatch:
build_certs:
description: Build certificates from scratch
type: boolean
default: false
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