-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This small script can be used to find the most recent release of grafana-build-tools. Client repositories can use this to figure out if their version is up-to-date. Signed-off-by: Marcelo E. Magallon <[email protected]>
- Loading branch information
Showing
3 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,6 +43,9 @@ FROM go as tools | |
RUN env GOBIN=/build go install github.com/grafana/grizzly/cmd/grr@5f301fd6c773 | ||
# RUN env GOBIN=/build go install github.com/grafana/grizzly/cmd/[email protected] | ||
|
||
# Add semversort | ||
RUN env GOBIN=/build go install github.com/whereswaldon/[email protected] | ||
|
||
# Add golangci-lint | ||
COPY --from=registry.hub.docker.com/golangci/golangci-lint:v1.55.2 /usr/bin/golangci-lint /build | ||
|
||
|
@@ -55,6 +58,9 @@ FROM go as tools | |
# Add gotestsum | ||
RUN env GOBIN=/build go install gotest.tools/[email protected] | ||
|
||
# Add jq | ||
COPY --from=ghcr.io/jqlang/jq:1.7 /jq /build | ||
|
||
FROM go AS k6 | ||
# The grafana/xk6 image only exists for amd64, so we need to build it for | ||
# the target architecture. | ||
|
@@ -114,3 +120,5 @@ FROM registry.hub.docker.com/library/debian:stable-slim AS final | |
COPY --from=skopeo /build/* /usr/local/bin/ | ||
|
||
COPY lib/image-test /usr/local/bin | ||
|
||
COPY lib/get-latest-gbt-version /usr/local/bin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/sh | ||
|
||
skopeo list-tags docker://ghcr.io/grafana/grafana-build-tools | | ||
jq -r '.Tags[] | select(. | startswith("v"))' | | ||
semversort | | ||
tail -1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters