From ca5d9e392daa6e9c097598bb82837074baf180bf Mon Sep 17 00:00:00 2001 From: Wilhelm Westermark Date: Sun, 11 Nov 2018 16:40:05 +0100 Subject: [PATCH 1/2] Added autodeploy stuff --- GitAutoDeploy.conf.json | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 GitAutoDeploy.conf.json diff --git a/GitAutoDeploy.conf.json b/GitAutoDeploy.conf.json new file mode 100644 index 0000000..9661c71 --- /dev/null +++ b/GitAutoDeploy.conf.json @@ -0,0 +1,10 @@ +{ + "port": 8084, + "repositories": + [{ + "url": "https://git.elab.kth.se/davide/ELAB-partsearch", + "path": "/srv/ELAB-partsearch", + "deploy": "echo Deploying and restarting ELAB-partsearch && git reset --hard && git pull" + }] +} + From 839d2f87f54aed30cea87f6e97c833727da2748a Mon Sep 17 00:00:00 2001 From: Wilhelm Westermark Date: Sun, 11 Nov 2018 16:48:47 +0100 Subject: [PATCH 2/2] Added secret token for webhook --- GitAutoDeploy.conf.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/GitAutoDeploy.conf.json b/GitAutoDeploy.conf.json index 9661c71..165943a 100644 --- a/GitAutoDeploy.conf.json +++ b/GitAutoDeploy.conf.json @@ -4,7 +4,8 @@ [{ "url": "https://git.elab.kth.se/davide/ELAB-partsearch", "path": "/srv/ELAB-partsearch", - "deploy": "echo Deploying and restarting ELAB-partsearch && git reset --hard && git pull" + "deploy": "echo Deploying and restarting ELAB-partsearch && git reset --hard && git pull", + "secret-token": "etaeZee5eedie7sah8shaigo" }] }