ソースを参照

Add a script that only pulls

master
Fen Dweller 5年前
コミット
421198ce57
2個のファイルの変更19行の追加10行の削除
  1. +16
    -10
      config.json
  2. +3
    -0
      deploy.sh

+ 16
- 10
config.json ファイルの表示

@@ -1,18 +1,24 @@
[
{
"id": "sexy-push",
"execute-command": "{{ getenv "WEBHOOK_SCRIPT_DIR" }}/deploy-branch.sh",
"execute-command": "{{ getenv "WEBHOOK_SCRIPT_DIR" }}/deploy.sh",
"command-working-directory": "/home/web/crux.sexy/",
"pass-arguments-to-command": [
{
"source": "payload",
"name": "repository.name"
},
{
"source": "payload",
"name": "ref"
"response-message": "Updating...",
"trigger-rule": {
"match": {
"type": "value",
"value": "{{ getenv "WEBHOOK_SECRET" | js }}",
"parameter": {
"source": "payload",
"name": "secret"
}
}
],
}
},
{
"id": "webhook-push",
"execute-command": "{{ getenv "WEBHOOK_SCRIPT_DIR" }}/deploy.sh",
"command-working-directory": "/home/web/webhooks/",
"response-message": "Updating...",
"trigger-rule": {
"match": {


+ 3
- 0
deploy.sh ファイルの表示

@@ -0,0 +1,3 @@
#! /bin/bash

git pull

読み込み中…
キャンセル
保存