Skip to content

Commit

Permalink
fix: build docker script to checkf or GHA vars
Browse files Browse the repository at this point in the history
  • Loading branch information
npazosmendez committed Sep 30, 2024
1 parent a73b017 commit 89cc1e2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build_docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ version=$(git describe --tags --always | sed 's/^v//')
# note: we may want to extend this to also not tag as latest if working tree is dirty.
# but i think because of how go bindata works, it probably makes a change in the working tree.
tag=master
grep -q "master" .git/HEAD && [[ "$version" != *-* ]] && tag=latest
BRANCH=${GITHUB_HEAD_REF:-${GITHUB_REF_NAME:-$(git branch --show-current)}}
[[ "$BRANCH" == "master" ]] && [[ "$version" != *-* ]] && tag=latest


docker build --tag=grafana/carbon-relay-ng:$tag .
Expand Down

0 comments on commit 89cc1e2

Please sign in to comment.