From 49ae71a6ac6967a0e52576e0569274abda3b4032 Mon Sep 17 00:00:00 2001 From: Fijxu Date: Sun, 13 Apr 2025 15:52:08 -0400 Subject: [PATCH] ci: only build production docker images --- .forgejo/workflows/ci.yml | 2 -- docker/Dockerfile | 9 ++------- 2 files changed, 2 insertions(+), 9 deletions(-) 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