Merge pull request #23 from cmehay/autobuild

Add docker build hook
This commit is contained in:
Christophe Mehay 2019-04-29 23:26:59 +02:00 committed by GitHub
commit 4d76ed30ef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View file

@ -6,7 +6,7 @@ test:
tox tox
tag: tag:
git tag v$(TOR_VERSION) git tag v$(TOR_VERSION) -f
check: check:
pre-commit run --all-files pre-commit run --all-files

3
hooks/build Normal file
View file

@ -0,0 +1,3 @@
#!/bin/bash
docker build --build-arg tor_version=${SOURCE_BRANCH:1} -f $DOCKERFILE_PATH -t $IMAGE_NAME .