Skip to content

Commit

Permalink
Update tools image in the Makefile (grafana#4468)
Browse files Browse the repository at this point in the history
* Update tools image in the Makefile

* Skip docker-ci-tools workflow in forks
  • Loading branch information
carles-grafana authored Dec 18, 2024
1 parent d02611a commit a2039e9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/docker-ci-tools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ permissions:
jobs:

get-image-tag:
if: github.repository == 'grafana/tempo' # skip in forks
runs-on: ubuntu-24.04
outputs:
tag: ${{ steps.get-tag.outputs.tag }}
Expand All @@ -29,6 +30,7 @@ jobs:
echo "tag=$(./tools/image-tag)" >> "$GITHUB_OUTPUT"
docker-ci-tools:
if: github.repository == 'grafana/tempo'
needs: get-image-tag
strategy:
matrix:
Expand All @@ -50,6 +52,7 @@ jobs:
docker push $IMAGE_NAME:$TAG_ARCH
manifest:
if: github.repository == 'grafana/tempo'
needs: ['get-image-tag', 'docker-ci-tools']
runs-on: ubuntu-latest
env:
Expand Down
2 changes: 1 addition & 1 deletion build/tools.mk
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ TOOL_DIR ?= tools
TOOL_CONFIG ?= $(TOOL_DIR)/tools.go

TOOLS_IMAGE ?= grafana/tempo-ci-tools
TOOLS_IMAGE_TAG ?= main-e87b8d4
TOOLS_IMAGE_TAG ?= main-d02611a

GOTOOLS ?= $(shell cd $(TOOL_DIR) && go list -e -f '{{ .Imports }}' -tags tools |tr -d '[]')

Expand Down

0 comments on commit a2039e9

Please sign in to comment.