prysm-pulse/scripts/workspace_status.sh
Preston Van Loon addc3897c4
Use STABLE_ prefix for git tag to force a relink of version (#6307)
* Use STABLE_ prefix for git tag to force a relink of version
* Add comment about STABLE_
2020-06-18 19:59:47 +00:00

9 lines
363 B
Bash
Executable File

#!/bin/bash
# Note: The STABLE_ prefix will force a relink when the value changes when using rules_go x_defs.
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 STABLE_GIT_TAG $(git describe --tags $(git rev-list --tags --max-count=1))