github.com/prysmaticlabs/prysm@v1.4.4/scripts/workspace_status.sh (about)

     1  #!/bin/bash
     2  
     3  # Note: The STABLE_ prefix will force a relink when the value changes when using rules_go x_defs.
     4  
     5  echo STABLE_GIT_COMMIT "$(git rev-parse HEAD)"
     6  echo DATE "$(date --rfc-3339=seconds --utc)"
     7  echo DATE_UNIX "$(date --utc +%s)"
     8  echo DOCKER_TAG "$(git rev-parse --abbrev-ref HEAD)-$(git rev-parse --short=6 HEAD)"
     9  echo STABLE_GIT_TAG "$(git describe --tags "$(git rev-list --tags --max-count=1)")"