File tree 2 files changed +19
-11
lines changed
2 files changed +19
-11
lines changed Original file line number Diff line number Diff line change 32
32
33
33
install : build
34
34
35
- cp bin/postgres-ci-git-hook /usr/bin/postgres-ci-git-hook
35
+ sudo cp bin/postgres-ci-git-hook /usr/bin/postgres-ci-git-hook
36
36
37
37
all : go build install
Original file line number Diff line number Diff line change @@ -29,23 +29,31 @@ Example:
29
29
30
30
Server-side hook:
31
31
32
- Set environment variables to post-receive hook file (.git/hooks/post-receive)
32
+ Add to post-receive hook file (.git/hooks/post-receive)
33
33
34
- export HOST=https://postgres-ci.com
35
- export TOKEN=587e6d7b-a023-4cab-b982-8169557e9e0c
36
- export EVENT=post-receive
34
+ #!/bin/bash
37
35
38
- /usr/bin/postgres-ci-git-hook
36
+ export HOST=https://postgres-ci.com
37
+ export TOKEN=587e6d7b-a023-4cab-b982-8169557e9e0c
38
+ export EVENT=post-receive
39
+
40
+ /usr/bin/postgres-ci-git-hook
41
+
42
+ and make it executable (chmod +x)
39
43
40
44
Local hook:
41
45
42
- Set environment variables to post-receive hook file (.git/hooks/post-commit)
46
+ Add to post-commit hook file (.git/hooks/post-commit)
47
+
48
+ #!/bin/bash
49
+
50
+ export HOST=http://postgres-ci.local
51
+ export TOKEN=587e6d7b-a023-4cab-b982-8169557e9e0c
52
+ export EVENT=post-commit
43
53
44
- export HOST=https://postgres-ci.com
45
- export TOKEN=587e6d7b-a023-4cab-b982-8169557e9e0c
46
- export EVENT=post-commit
54
+ /usr/bin/postgres-ci-git-hook
47
55
48
- /usr/bin/postgres-ci-git-hook
56
+ and make it executable (chmod +x)
49
57
`
50
58
51
59
var (
You can’t perform that action at this time.
0 commit comments