File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/sh -e
2
+
3
+ # Post-commit hook for triggering bash-completion Docker Hub test image
4
+ # builds at https://hub.docker.com/r/vskytta/bash-completion/
5
+ #
6
+ # To enable: ln -s ../../extra/git-post-commit.sh .git/hooks/post-commit
7
+ #
8
+ # The bash-completion.docker-hub-trigger-url config option must be set to
9
+ # the full Docker Hub build trigger URL to hit.
10
+
11
+ url=$( git config bash-completion.docker-hub-trigger-url)
12
+
13
+ test $( git symbolic-ref --short HEAD) = master
14
+
15
+ git diff-tree -r --name-only --no-commit-id HEAD | \
16
+ grep -qxF completions/Makefile.am
17
+
18
+ curl \
19
+ --silent --show-error \
20
+ --max-time 30 \
21
+ --header Content-Type:application/json \
22
+ --data ' {"build":true}' \
23
+ $url > /dev/null
You can’t perform that action at this time.
0 commit comments