[SUCS Devel] [Git][sucssite/sucs-site][master] SUCS Site auto deploy on push

Imran Hussain imranh at sucs.org
Mon Jul 1 17:03:59 BST 2019



Imran Hussain pushed to branch master at sucssite / sucs-site


Commits:
34804f8d by Imran Hussain at 2019-07-01T16:03:22Z
SUCS Site auto deploy on push

- - - - -


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/commit/34804f8d1de8cc503e4f9a81e17e0c69bd91ad1b

-- 
View it on GitLab: https://projects.sucs.org/sucssite/sucs-site/commit/34804f8d1de8cc503e4f9a81e17e0c69bd91ad1b
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/b3c2e5a8/attachment-0001.html>


More information about the Devel mailing list