fix: download schemas from signal-cli releases

This commit is contained in:
Gara Dorta 2026-05-10 22:14:19 +01:00
parent b37aac4d5f
commit 4bbadbf29e

View File

@ -102,7 +102,10 @@ RUN cd /tmp/signal-cli-rest-api-src && ${GOPATH}/bin/swag init --requiredByDefau
# manually add the json schemas for the receive V1 endpoint to the docs # manually add the json schemas for the receive V1 endpoint to the docs
RUN if [ "$(uname -m)" = "x86_64" ]; then \ RUN if [ "$(uname -m)" = "x86_64" ]; then \
cd /tmp/signal-cli-rest-api-src/docs \ cd /tmp/signal-cli-rest-api-src/docs \
&& go run add_v1_receive_schemas.go /tmp/signal-cli-${SIGNAL_CLI_VERSION}-source/build/generated/META-INF/schemas; \ wget https://github.com/AsamK/signal-cli/releases/download/v${SIGNAL_CLI_VERSION}/signal-cli-${SIGNAL_CLI_VERSION}-json-schemas.tar.gz \
&& mkdir signal-cli-schemas \
&& tar xf signal-cli-${SIGNAL_CLI_VERSION}-json-schemas.tar.gz -C signal-cli-schemas \
&& go run add_v1_receive_schemas.go signal-cli-schemas; \
fi; fi;
# build signal-cli-rest-api # build signal-cli-rest-api