compose/script/build/write-git-sha

8 lines
213 B
Plaintext
Raw Normal View History

#!/bin/bash
#
# Write the current commit sha to the file GITSHA. This file is included in
# packaging so that `docker-compose version` can include the git sha.
#
set -e
git rev-parse --short HEAD > compose/GITSHA