How to automate deployment of source & compiled code (excluding git history) to third-party developers? -


i'm going setup tools/techiques/environments when need provide source code third-party developers, without git history sensitive code compiled , stripped. want automate process, provide latest version of without pain of doing necessary steps hands everytime. use bitbucket , git.

how can goals accomplished using bitbucket , git? need other tools?

p.s. feel free edit question if doesn't state clear idea. hope questions not broad , doesn't fall under restrictions

sounds want write post-commit hook. might fine grained you. write automatic steps .git/hooks/post-commit , make executable. can

git --work-tree path_for_third_party checkout head -- public_files 

to update public_files third-party developers in path_for_third_party, assume publish data third-party developers.

then update compiled results shoud write makefile (or similar) produce output in path_for_third_party hidden files.

if chose right layout repository can use public_files directory, checkout public_files path_for_third_party/public_files.

note method directory layout same in publishing directory , in repository.

btw.: if third-party developer changes public_file in directory, can simply

git --work-tree path_for_third_party add -u 

i use method publish files git repository. can simply

git config -g alias.public '!git --work-tree $(git config --get public.root) ' git config public.root 'path_for_third_party' 

so can say

git public diff --name-only 

or

git public status -s -uno 

i think method known or similar detached work-tree.

if use method need checkout files in local repository after did public commit:

git public add -u; git public commit -m "john doe changed something" git checkout head -- . 

the last line updates local work tree align commit did above.


Comments

Popular posts from this blog

twig - Using Twigbridge in a Laravel 5.1 Package -

firemonkey - How do I make a beep sound in Android using Delphi and the API? -

jdbc - Not able to establish database connection in eclipse -