https://github.com/shadowapex/docker-git-push
Simple docker container for auto-commiting and pushing changes to a Git repository.
https://github.com/shadowapex/docker-git-push
Last synced: about 1 year ago
JSON representation
Simple docker container for auto-commiting and pushing changes to a Git repository.
- Host: GitHub
- URL: https://github.com/shadowapex/docker-git-push
- Owner: ShadowApex
- License: mit
- Created: 2017-11-22T18:41:40.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-11-22T22:27:39.000Z (over 8 years ago)
- Last Synced: 2025-03-27T08:58:16.269Z (over 1 year ago)
- Language: Shell
- Size: 5.86 KB
- Stars: 25
- Watchers: 0
- Forks: 10
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# docker-git-push
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.
## Build
```
docker build -t "git-push:latest" .
```
## Usage
```
docker run --name git-push -d \
-e GIT_REPO="ssh://git@github.com/user/repository.git" \
-e GIT_BRANCH="master" \
-e GIT_ORIGIN="origin" \
-e COMMIT_USER="Git Service" \
-e COMMIT_EMAIL="git@example.com" \
-e WORKING_DIR="/git" \
-e SSH_KEY="" \
-e FILES_TO_COMMIT="." \
-e SLEEP_INTERVAL="600" \
-v /path/to/git/repo:/git git-push:latest
```