Skip to content
Snippets Groups Projects
Commit 7486ecd8 authored by Imran Hussain's avatar Imran Hussain
Browse files

Add CI/CD to doorkey

parent 5d25bebd
No related branches found
No related tags found
No related merge requests found
Pipeline #837 passed
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment