Update CI

This commit is contained in:
Fijxu 2024-11-05 00:11:10 -03:00
parent b953dc1ce7
commit 91c9cd45a4
Signed by: Fijxu
GPG key ID: 32C1DDF333EDA6A4
3 changed files with 5 additions and 3 deletions

View file

@ -37,13 +37,15 @@ jobs:
type=sha,format=short,prefix={{date 'YYYY.MM.DD'}}-,enable=${{ github.ref == format('refs/heads/{0}', 'master') }} type=sha,format=short,prefix={{date 'YYYY.MM.DD'}}-,enable=${{ github.ref == format('refs/heads/{0}', 'master') }}
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'master') }} type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'master') }}
- uses: https://code.forgejo.org/docker/build-push-action@v5 - uses: https://code.forgejo.org/docker/build-push-action@v6
name: Build images name: Build images
with: with:
context: . context: .
file: docker/Dockerfile file: docker/Dockerfile
tags: ${{ steps.meta.outputs.tags }} tags: ${{ steps.meta.outputs.tags }}
platforms: linux/amd64 platforms: linux/amd64
# cache-from: type=gha
# cache-to: type=gha,mode=max
push: true push: true
build-args: | build-args: |
"release=1" "release=1"

View file

@ -1,4 +1,4 @@
FROM crystallang/crystal:1.12.1-alpine AS builder FROM crystallang/crystal:1.14.0-alpine AS builder
RUN apk add --no-cache sqlite-static yaml-static RUN apk add --no-cache sqlite-static yaml-static

View file

@ -220,7 +220,7 @@ module Invidious::Routes::Watch
) )
begin begin
video_url = "https://#{URI.parse(fmt_stream[0]["url"].to_s).query_params["host"]}#{fmt_stream[0]["url"].to_s}" video_url = fmt_stream[0]["url"].to_s
rescue rescue
video_url = nil video_url = nil
end end