Add workflow to setup/renew certificates
Some checks failed
Deploy homelab / Deploy (push) Failing after 1s
Some checks failed
Deploy homelab / Deploy (push) Failing after 1s
This commit is contained in:
25
.gitea/workflows/certificates.yaml
Normal file
25
.gitea/workflows/certificates.yaml
Normal file
@@ -0,0 +1,25 @@
|
||||
name: Build certificates
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
build_certs:
|
||||
description: Build certificates from scratch
|
||||
type: boolean
|
||||
required: true
|
||||
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
|
||||
Reference in New Issue
Block a user