How to run hooks from subdir ? #168
Unanswered
CircleCode
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, my project is structured as in https://github.com/CircleCode/test-captainhook/tree/main, which is:
In my docker-compose, base dir is mounted as
/app
,and my working directory is
/app/subdir
(I know this is odd, but I inherited this project structure, and cannot change it for now)to make captainhook work, I came to this config, which is obviously suboptimal:
"git-directory": "../.git/"
is required because the config file is insubdir
-f subdir/docker-compose.yaml -f subdir/docker-compose.custom.yaml
is required because the hook is ran from base dir, wheredocker compose
cannot find.env
norcompose.yaml
files-w '/app'
is required because in the hook, config path is given relative to base diris there any workaround for these points in order to have a proper and easier to understand configuration?
Beta Was this translation helpful? Give feedback.
All reactions