From 53f8ee9f0382b67266248fcac8965b75392774b0 Mon Sep 17 00:00:00 2001 From: Francesco Mancuso Date: Sat, 24 Jan 2026 22:26:43 +0100 Subject: [PATCH] Lancio il deploy del sito web Uso della custom action realizzata per CI/CD Signed-off-by: Francesco Mancuso --- .gitea/webhooks/deploy.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .gitea/webhooks/deploy.yaml diff --git a/.gitea/webhooks/deploy.yaml b/.gitea/webhooks/deploy.yaml new file mode 100644 index 0000000..348bfd7 --- /dev/null +++ b/.gitea/webhooks/deploy.yaml @@ -0,0 +1,24 @@ +name: Deploy +on: [push] + +jobs: + trigger: + runs-on: ubuntu-latest + steps: + - name: Build & Deploy + env: + REPO_NAME: ${{ gitea.event.repository.name }} + REPO_OWNER: ${{ gitea.repository_owner }} + ROOT_DIR: "/" + TYPE: "pages" + JOB_TOKEN: ${{ gitea.token }} + run: | + curl -f -s -S -X -v POST http://gitea-webhook:9000/hooks/trigger-deploy \ + -H "Content-Type: application/json" \ + -d "{ + \"repository\": { \"name\": \"$REPO_NAME\" }, + \"owner\": { \"username\": \"$REPO_OWNER\" }, + \"root\": \"$ROOT_DIR\", + \"type\": \"$TYPE\", + \"token\": \"$JOB_TOKEN\" + }" \ No newline at end of file