All checks were successful
Deploy / trigger (push) Successful in 2s
Signed-off-by: Francesco Mancuso <hello@francescomancuso.it>
27 lines
745 B
YAML
27 lines
745 B
YAML
name: Deploy
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
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\"
|
|
}" |