diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml index 6f9a5a04..d7da1da7 100644 --- a/.forgejo/workflows/ci.yml +++ b/.forgejo/workflows/ci.yml @@ -54,5 +54,3 @@ jobs: push: true cache-from: type=gha cache-to: type=gha,mode=max - build-args: | - "release=1" diff --git a/docker/Dockerfile b/docker/Dockerfile index f7cb02ae..b38db2a3 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -22,16 +22,11 @@ COPY ./videojs-dependencies.yml ./videojs-dependencies.yml RUN crystal spec --warnings all \ --link-flags "-lxml2 -llzma" -RUN --mount=type=cache,target=/root/.cache/crystal if [[ "${release}" == 1 ]] ; then \ +RUN --mount=type=cache,target=/root/.cache/crystal \ crystal build ./src/invidious.cr \ --release --mcpu=x86-64-v2 \ --static --warnings all \ - --link-flags "-lxml2 -llzma"; \ - else \ - crystal build ./src/invidious.cr \ - --static --warnings all \ - --link-flags "-lxml2 -llzma"; \ - fi + --link-flags "-lxml2 -llzma"; FROM mirror.gcr.io/alpine:3.20 RUN apk add --no-cache rsvg-convert ttf-opensans tini tzdata