Commit 7486ecd8 authored by Imran Hussain's avatar Imran Hussain
Browse files

Add CI/CD to doorkey

parent 5d25bebd
Pipeline #837 passed with stages
in 1 minute and 27 seconds
stages:
- test
- deploy
#before_script:
php-syntax-check:
stage: test
script:
- apt-get clean
- apt-get update
- apt-get install -y php-cli
- php -l public/index.php
- php -l public/pull.php
deploy-live:
stage: deploy
image: curlimages/curl:7.80.0
script:
- curl --fail-with-body https://doorkey.sucs.org/pull.php
only:
- master
environment: live
<?php
exec("cd ..; git reset --hard HEAD; git pull", $retArr, $retVal);
if ($retVal == 0) {
print("ok");
exit(0);
}
print("not ok\n");
var_dump($retArr);
var_dump($retVal);
?>
\ No newline at end of file
Supports Markdown
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