diff options
author | Harald Welte <laforge@gnumonks.org> | 2019-03-29 14:12:28 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2019-03-29 16:40:40 +0000 |
commit | cffe1022b520fe7273ee949935a23eb202a9890e (patch) | |
tree | 14b76c809e51bd4d825337f1b642162118adfc21 /osmo-hlr-master | |
parent | 2e3a5c1c530306f3c9b10311edda606768fc83ed (diff) |
print branch name and git commit hash during docker container build
This is quite useful when looking at jenkins logs to know which exact
version was built at the time.
Change-Id: Id52c382b454e2beecf46820752aeff15b2c1a0ae
Diffstat (limited to 'osmo-hlr-master')
-rw-r--r-- | osmo-hlr-master/Dockerfile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/osmo-hlr-master/Dockerfile b/osmo-hlr-master/Dockerfile index 45c3bd5..07d175d 100644 --- a/osmo-hlr-master/Dockerfile +++ b/osmo-hlr-master/Dockerfile @@ -31,6 +31,7 @@ ADD http://git.osmocom.org/osmo-hlr/patch?h=$OSMO_HLR_BRANCH /tmp/commit-osmo-hl RUN cd osmo-hlr && \ git fetch && git checkout -f -B $OSMO_HLR_BRANCH origin/$OSMO_HLR_BRANCH && \ + git rev-parse --abbrev-ref HEAD && git rev-parse HEAD && \ autoreconf -fi && \ ./configure && \ make -j8 install |