mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-22 03:30:35 +00:00
07db0dc448
* Add build metadata * Add buildbuddy flags * more metadata * fix latest tag * fix branch * revert branch change * touch a file to trigger build * remove unknown command * fix script * Update latest_version_tag.sh
21 lines
689 B
Bash
Executable File
21 lines
689 B
Bash
Executable File
#!/bin/bash
|
|
|
|
repo_url=$(git config --get remote.origin.url)
|
|
echo "REPO_URL $repo_url"
|
|
|
|
commit_sha=$(git rev-parse HEAD)
|
|
echo "COMMIT_SHA $commit_sha"
|
|
|
|
echo "GIT_BRANCH $git_branch"
|
|
|
|
git_tree_status=$(git diff-index --quiet HEAD -- && echo 'Clean' || echo 'Modified')
|
|
echo "GIT_TREE_STATUS $git_tree_status"
|
|
|
|
# Note: the "STABLE_" suffix causes these to be part of the "stable" workspace
|
|
# status, which may trigger rebuilds of certain targets if these values change
|
|
# and you're building with the "--stamp" flag.
|
|
latest_version_tag=$(./hack/latest_version_tag.sh)
|
|
echo "STABLE_VERSION_TAG $latest_version_tag"
|
|
echo "STABLE_COMMIT_SHA $commit_sha"
|
|
echo "STABLE_GIT_TAG $latest_version_tag"
|