summaryrefslogtreecommitdiff
path: root/main.go
AgeCommit message (Collapse)Author
2024-07-06Prepare simple workbenchxengineering
After detecting an update of a Git ref craft should create a throw-away Git clone of the repository with the new Git commit checked out. This is the starting point for executing build and test steps. Improving performance by tree-less or shallow clones and updating submodules is not yet implemented.
2024-07-06Modify log outputxengineering
- exit message - more consistent messages - refactoring to implement this
2024-07-05Determine and validate Git hook typexengineering
Since craft should only be referenced by a symlink like that: ln -s /usr/bin/craft myrepo/.git/hooks/post-receive It is important to detect the hook type, in this case 'post-receive'. This commit also validates that the determined hook type is supported. Currently only the post-receive hook is supported.
2024-07-05Print current working directoryxengineering
When craft is used - as intended - as Git post-receive hook the current working directory should always be the .git folder. In case of bare repositories this should point to the bare repository.
2023-09-02Add stdin parsing for Git post-receive hookxengineering
The first program for this repsoitory will be a Git post-receive hook which will be used at any source repository which is registered for automated builds.