From 93742a09dc74ca17b0243e50e9509f26ce5994cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Dobo=C5=A1?= Date: Thu, 8 Jun 2023 23:05:22 +0200 Subject: [PATCH] API only CI Moved the change to Dockerfile instead --- docker/Dockerfile | 6 +++--- docker/Dockerfile.arm64 | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 57864883..b23583b0 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -25,18 +25,18 @@ RUN crystal spec --warnings all \ --link-flags "-lxml2 -llzma" RUN if [[ "${release}" == 1 && "${disable_quic}" == 1 ]] ; then \ - crystal build ./src/invidious.cr \ + crystal build -Dapi_only ./src/invidious.cr \ --release \ -Ddisable_quic \ --static --warnings all \ --link-flags "-lxml2 -llzma"; \ elif [[ "${release}" == 1 ]] ; then \ - crystal build ./src/invidious.cr \ + crystal build -Dapi_only ./src/invidious.cr \ --release \ --static --warnings all \ --link-flags "-lxml2 -llzma"; \ else \ - crystal build ./src/invidious.cr \ + crystal build -Dapi_only ./src/invidious.cr \ --static --warnings all \ --link-flags "-lxml2 -llzma"; \ fi diff --git a/docker/Dockerfile.arm64 b/docker/Dockerfile.arm64 index 10135efb..24c59e97 100644 --- a/docker/Dockerfile.arm64 +++ b/docker/Dockerfile.arm64 @@ -25,18 +25,18 @@ RUN crystal spec --warnings all \ --link-flags "-lxml2 -llzma" RUN if [[ "${release}" == 1 && "${disable_quic}" == 1 ]] ; then \ - crystal build ./src/invidious.cr \ + crystal build -Dapi_only ./src/invidious.cr \ --release \ -Ddisable_quic \ --static --warnings all \ --link-flags "-lxml2 -llzma"; \ elif [[ "${release}" == 1 ]] ; then \ - crystal build ./src/invidious.cr \ + crystal build -Dapi_only ./src/invidious.cr \ --release \ --static --warnings all \ --link-flags "-lxml2 -llzma"; \ else \ - crystal build ./src/invidious.cr \ + crystal build -Dapi_only ./src/invidious.cr \ --static --warnings all \ --link-flags "-lxml2 -llzma"; \ fi