Go to file
BuckarooBanzay 60af3ee692 fix testdir typo 2020-12-10 20:27:35 +01:00
.github/workflows initial commit 2020-12-03 09:16:31 +01:00
jobs fix testdir typo 2020-12-10 20:27:35 +01:00
Dockerfile various fixes and submodule support 2020-12-07 07:52:30 +01:00
entrypoint.sh various fixes and submodule support 2020-12-07 07:52:30 +01:00
readme.md add GIT_URL env var 2020-12-05 18:43:14 +01:00

readme.md

git repository auto updater

Overview

Auto-updates a git repository

Environment variables

  • GIT_DIR path to the git repo
  • GIT_BRANCH branch to use (optional)
  • GIT_URL url to clone if the repository does not exist (optional)

Usage

docker run \
 -v /my/git/repo:/git \
 -e GIT_DIR=/git \
 -e GIT_BRANCH=master \
 buckaroobanzay/git_autoupdate

Testing / dev

docker build . -t git_autoupdate
docker run --rm -it -e GIT_DIR=/git -e GIT_URL=https://github.com/BuckarooBanzay/git_autoupdate/ git_autoupdate

License

MIT