Add docker build hook

This commit is contained in:
Christophe Mehay 2019-04-29 23:23:30 +02:00 committed by Christophe Mehay
parent f104c78c7c
commit 29eb1ce01e
2 changed files with 4 additions and 1 deletions

View file

@ -6,7 +6,7 @@ test:
tox
tag:
git tag v$(TOR_VERSION)
git tag v$(TOR_VERSION) -f
check:
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 .