From a2e686e7ca1778195cbd78a1ddb81fe8194fd00b Mon Sep 17 00:00:00 2001 From: Matthew Pomes Date: Tue, 2 Sep 2025 23:57:28 -0500 Subject: [PATCH] Add workflow to setup/renew certificates --- .gitea/workflows/certificates.yaml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .gitea/workflows/certificates.yaml diff --git a/.gitea/workflows/certificates.yaml b/.gitea/workflows/certificates.yaml new file mode 100644 index 0000000..ff276c6 --- /dev/null +++ b/.gitea/workflows/certificates.yaml @@ -0,0 +1,29 @@ +name: Build certificates + +on: + workflow_dispatch: + build_certs: + description: Build certificates from scratch + type: boolean + required: true + default: false + test_param: + description: Using new param + type: string + required: true +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