Skip to content
GitLab
Explore
Sign in
Commits on Source (2)
SUCS Site auto deploy on push
· 34804f8d
Imran Hussain
authored
Jul 01, 2019
34804f8d
Merge branch 'master' into 'beta'
· 9670a51f
Imran Hussain
authored
Jul 01, 2019
SUCS Site auto deploy on push See merge request
!107
9670a51f
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
9670a51f
...
...
@@ -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 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 curl
-
curl https://sucs.org/pull.php
only
:
-
sucs-site
environment
:
live
\ No newline at end of file
htdocs/pull.php
0 → 100644
View file @
9670a51f
<?php
exec
(
"cd ..; git reset --hard HEAD; git pull"
);
?>
\ No newline at end of file