From a0a4d355830fe49597005b77fd98d3cf29156969 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Fri, 19 Jul 2019 10:44:49 +0200 Subject: [PATCH] setting VERSION build arg from the tag we build --- doc/docker/fpm/hooks/build | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 doc/docker/fpm/hooks/build diff --git a/doc/docker/fpm/hooks/build b/doc/docker/fpm/hooks/build new file mode 100644 index 0000000000..cb20b1f851 --- /dev/null +++ b/doc/docker/fpm/hooks/build @@ -0,0 +1,4 @@ +#!/bin/bash + +# setting VERSION build arg from the tag we build +docker build --build-arg VESION=$SOURCE_BRANCH -f $DOCKERFILE_PATH -t $IMAGE_NAME .