-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (37 loc) · 904 Bytes
/
Copy pathdeploy.yml
File metadata and controls
47 lines (37 loc) · 904 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Deploy GLPI
on:
push:
branches:
- main
concurrency:
group: glpi-production
cancel-in-progress: false
jobs:
deploy:
runs-on:
- self-hosted
- linux
- x64
steps:
- name: Deploy latest main branch
shell: bash
run: |
set -euo pipefail
cd /home/dypiu/glpi
git fetch origin main
git reset --hard origin/main
echo "Deployed commit:"
git log -1 --oneline
- name: Check PHP entry point
shell: bash
run: |
php -l /home/dypiu/glpi/public/index.php
- name: Check Apache response
shell: bash
run: |
curl --fail --silent --show-error \
--max-time 15 \
http://127.0.0.1/ \
-H "Host: ithelpdesk.dypiu.ac.in" \
> /dev/null
echo "GLPI responded successfully"