ci: only build production docker images

This commit is contained in:
Fijxu 2025-04-13 15:52:08 -04:00
parent fac53ce721
commit 49ae71a6ac
Signed by: Fijxu
GPG key ID: 32C1DDF333EDA6A4
2 changed files with 2 additions and 9 deletions

View file

@ -54,5 +54,3 @@ jobs:
push: true
cache-from: type=gha
cache-to: type=gha,mode=max
build-args: |
"release=1"

View file

@ -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