From 9d0ce3f8ca20bfa6839a5a8b4f46c20ac20a1336 Mon Sep 17 00:00:00 2001 From: Christophe Mehay Date: Mon, 29 Apr 2019 23:23:30 +0200 Subject: [PATCH] Add docker build hook --- Makefile | 2 +- hooks/build | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 hooks/build diff --git a/Makefile b/Makefile index 5d272cd..0039c5e 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,7 @@ test: tox tag: - git tag v$(TOR_VERSION) + git tag v$(TOR_VERSION) -f check: pre-commit run --all-files diff --git a/hooks/build b/hooks/build new file mode 100644 index 0000000..2fa1f9c --- /dev/null +++ b/hooks/build @@ -0,0 +1,3 @@ +#!/bin/bash + +docker build --build-arg tor_version=${SOURCE_BRANCH:1} -f $DOCKERFILE_PATH -t $IMAGE_NAME .