Enable to build ansible image out of git directory 81/75981/4
authorPetr Ospalý <p.ospaly@partner.samsung.com>
Fri, 18 Jan 2019 09:34:27 +0000 (10:34 +0100)
committerPetr Ospalý <p.ospaly@partner.samsung.com>
Thu, 24 Jan 2019 14:22:46 +0000 (15:22 +0100)
commit14f53333e9202a767b3a3d171f5e8d2b4f6dacd0
tree51431c23214442ccc514b17a159e55119c7148a3
parenta2382319684880aabd05678ed1c5ce63363ca1a9
Enable to build ansible image out of git directory

Inside the build_ansible_image.sh is a variable (label for docker image)
which is set to git commit hash. This is fine but you can just copy
and move ansible directory elsewhere out of git and this script breaks
because of this.

This change preserve previous functionality but only if the script
is run inside a git repository otherwise it will skip setting the
label for the built docker image.

Change-Id: I23f828542efddde21d1c96116de7b20272ef23ef
Issue-ID: OOM-1575
Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>
ansible/docker/build_ansible_image.sh