Fix checksum verification: download under the exact asset filename
build / build (push) Successful in 15s
build / build (push) Successful in 15s
sha256sum -c validates the file under the name recorded in the checksums file (mcp-grafana_Linux_<arch>.tar.gz); saving the download as mcp.tar.gz made the check fail with 'No such file or directory'.
This commit is contained in:
+2
-2
@@ -43,9 +43,9 @@ RUN set -eux; \
|
|||||||
*) echo "unsupported TARGETARCH: $TARGETARCH"; exit 1 ;; \
|
*) echo "unsupported TARGETARCH: $TARGETARCH"; exit 1 ;; \
|
||||||
esac; \
|
esac; \
|
||||||
curl -fsSL "https://github.com/grafana/mcp-grafana/releases/download/${MCP_GRAFANA_VERSION}/mcp-grafana_${SHORT}_checksums.txt" -o checksums.txt; \
|
curl -fsSL "https://github.com/grafana/mcp-grafana/releases/download/${MCP_GRAFANA_VERSION}/mcp-grafana_${SHORT}_checksums.txt" -o checksums.txt; \
|
||||||
curl -fsSL "https://github.com/grafana/mcp-grafana/releases/download/${MCP_GRAFANA_VERSION}/mcp-grafana_${ASSET}.tar.gz" -o mcp.tar.gz; \
|
curl -fsSL "https://github.com/grafana/mcp-grafana/releases/download/${MCP_GRAFANA_VERSION}/mcp-grafana_${ASSET}.tar.gz" -o "mcp-grafana_${ASSET}.tar.gz"; \
|
||||||
grep "mcp-grafana_${ASSET}.tar.gz" checksums.txt | sha256sum -c -; \
|
grep "mcp-grafana_${ASSET}.tar.gz" checksums.txt | sha256sum -c -; \
|
||||||
tar -xzf mcp.tar.gz mcp-grafana; \
|
tar -xzf "mcp-grafana_${ASSET}.tar.gz" mcp-grafana; \
|
||||||
chmod +x mcp-grafana
|
chmod +x mcp-grafana
|
||||||
|
|
||||||
# The binary is fully static (no INTERP segment) — scratch is sufficient.
|
# The binary is fully static (no INTERP segment) — scratch is sufficient.
|
||||||
|
|||||||
Reference in New Issue
Block a user