prysm-pulse/scripts/workspace_status.sh
Preston Van Loon 8815f6ced8
Add the latest git tag as part of the version string. (#6210)
Example:

version=Prysm/v1.0.0-alpha.10/28e61fa40c7d16774b3b1c18d8382c64537bfa84. Built at: 2020-06-11 04:29:18+00:00
2020-06-11 13:45:31 +08:00

7 lines
264 B
Bash
Executable File

#!/bin/bash
echo STABLE_GIT_COMMIT $(git rev-parse HEAD)
echo DATE $(date --rfc-3339=seconds --utc)
echo DOCKER_TAG $(git rev-parse --abbrev-ref HEAD)-$(git rev-parse --short=6 HEAD)
echo LATEST_GIT_TAG $(git describe --tags $(git rev-list --tags --max-count=1))