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

Merge branch 'beta' into 'sucs-site'

ability for site to auto deploy

See merge request !111
parents bb7e6d0a 6cf55875
No related branches found
No related tags found
1 merge request!111ability for site to auto deploy
Pipeline #583 passed
......@@ -33,18 +33,22 @@ js-syntax-check:
- npm install -g jshint
- find htdocs/js/ -name *.js ! -name jquery* | xargs -n 1 jshint --verbose
fake-deploy-beta:
deploy-beta:
stage: deploy
script:
- echo "Hello World!"
- apt update
- apt install -y curl
- curl https://beta.sucs.org/pull.php
only:
- beta
environment: beta
fake-deploy-live:
deploy-live:
stage: deploy
script:
- echo "Hello World!"
- apt update
- apt install -y curl
- curl https://sucs.org/pull.php
only:
- sucs-site
environment: live
\ No newline at end of file
<?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