Skip to content

Commit

Permalink
Merge pull request #581 from grafana/owilliams/tagging
Browse files Browse the repository at this point in the history
build: also build a docker "master" image when we build "main"
  • Loading branch information
ywwg authored Jan 7, 2025
2 parents 3293ce1 + 2335143 commit ebedbaf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,9 @@ jobs:
tag=latest
[[ ! "$version" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]] && tag=main
docker push grafana/carbon-relay-ng:$tag
# To preserve compatibility, also push the "master" tag we built in
# build_docker.sh.
[[ "$tag" == "main" ]] && docker push grafana/carbon-relay-ng:master
github_binaries:
if: github.ref_type == 'tag'
Expand Down
5 changes: 5 additions & 0 deletions build_docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,8 @@ tag=main

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

# To preserve compatibility with older installations, also tag "master" when we tag "main".
if [ "$tag" == "main" ] ; then
docker tag grafana/carbon-relay-ng:$tag grafana/carbon-relay-ng:master
fi

0 comments on commit ebedbaf

Please sign in to comment.