github.com/dim4egster/coreth@v0.10.2/scripts/constants.sh (about) 1 #!/usr/bin/env bash 2 3 # Set the PATHS 4 GOPATH="$(go env GOPATH)" 5 6 # Set binary location 7 binary_path=${CORETH_BINARY_PATH:-"$GOPATH/src/github.com/dim4egster/qmallgo/build/plugins/evm"} 8 9 # Avalabs docker hub 10 dockerhub_repo="avaplatform/qmallgo" 11 12 # Current branch 13 current_branch=${CURRENT_BRANCH:-$(git describe --tags --exact-match 2> /dev/null || git symbolic-ref -q --short HEAD || git rev-parse --short HEAD)} 14 echo "Using branch: ${current_branch}" 15 16 # Image build id 17 # Use an abbreviated version of the full commit to tag the image. 18 19 # WARNING: this will use the most recent commit even if there are un-committed changes present 20 coreth_commit="$(git --git-dir="$CORETH_PATH/.git" rev-parse HEAD)" 21 coreth_commit_id="${coreth_commit::8}" 22 23 build_image_id=${BUILD_IMAGE_ID:-"$avalanche_version-$coreth_commit_id"}