[SUCS Devel] [Git][sucssite/sucs-site][beta] 2 commits: SUCS Site auto deploy on push
Imran Hussain
imranh at sucs.org
Mon Jul 1 17:07:20 BST 2019
Imran Hussain pushed to branch beta at sucssite / sucs-site
Commits:
34804f8d by Imran Hussain at 2019-07-01T16:03:22Z
SUCS Site auto deploy on push
- - - - -
9670a51f by Imran Hussain at 2019-07-01T16:07:16Z
Merge branch 'master' into 'beta'
SUCS Site auto deploy on push
See merge request sucssite/sucs-site!107
- - - - -
2 changed files:
- .gitlab-ci.yml
- + htdocs/pull.php
Changes:
=====================================
.gitlab-ci.yml
=====================================
@@ -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,0 +1,5 @@
+<?php
+
+exec("cd ..; git reset --hard HEAD; git pull");
+
+?>
\ No newline at end of file
View it on GitLab: https://projects.sucs.org/sucssite/sucs-site/compare/d6fee656b731da24e41b2880c3d9b0c785220cd2...9670a51f6e495f1efed123ca6396367aee1e7a34
--
View it on GitLab: https://projects.sucs.org/sucssite/sucs-site/compare/d6fee656b731da24e41b2880c3d9b0c785220cd2...9670a51f6e495f1efed123ca6396367aee1e7a34
You're receiving this email because of your account on projects.sucs.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sucs.org/pipermail/devel/attachments/20190701/b3c5c113/attachment-0001.html>
More information about the Devel
mailing list