Commit f8f2d60b authored by santiago duque's avatar santiago duque

added deploy php

parent 56745932
......@@ -17,6 +17,14 @@
"oAP" : "\/.gitignore",
"oF" : 0
},
"\/deploy.php" : {
"cB" : 0,
"ft" : 8192,
"hM" : 0,
"oA" : 0,
"oAP" : "\/deploy.php",
"oF" : 0
},
"\/src\/css\/shared.scss" : {
"aP" : 1,
"bl" : 0,
......
<?php
$secret = 'capiIs-kleinerJunge';
$token = $_SERVER['HTTP_X_GITLAB_TOKEN'] ?? '';
if ($token !== $secret) {
http_response_code(403);
die('Forbidden');
}
shell_exec('git pull 2>&1');
echo 'Deployed!';
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment