Simple docker container for auto-commiting and pushing changes to a Git repository.
10K+
This project is a simple script and Docker container for detecting changes to a given directory and automatically commiting and pushing any changes to that directory. This can be useful for keeping configuration files in version control automatically for applications that like to change them.
docker build -t "git-push:latest" .
docker run --name git-push -d \
-e GIT_REPO="ssh://[email protected]/user/repository.git" \
-e GIT_BRANCH="master" \
-e GIT_ORIGIN="origin" \
-e COMMIT_USER="Git Service" \
-e COMMIT_EMAIL="[email protected]" \
-e WORKING_DIR="/git" \
-e SSH_KEY="<private key>" \
-e FILES_TO_COMMIT="." \
-e SLEEP_INTERVAL="600" \
-v /path/to/git/repo:/git shadowapex/git-push:latest
Content type
Image
Digest
Size
14.5 MB
Last updated
almost 9 years ago
docker pull shadowapex/git-push