41 Commits

Author SHA1 Message Date
williamp 5748834af4 fix Dockerfile
Build and Push Docker Image / build-and-push (push) Successful in 16s
Build and Push Docker Image / deploy-on-green (push) Successful in 7s
2026-03-06 20:08:45 -05:00
williamp 06d2a5ef01 Deploy and release v1.0.0 (Go Refactor) #30
Build and Push Docker Image / build-and-push (push) Failing after 11s
Build and Push Docker Image / deploy-on-green (push) Has been skipped
2026-03-06 20:06:43 -05:00
williamp bdcd77eff1 rm build-testing to make way for merge
Build only (for PRs) / build-only (pull_request) Successful in 4m59s
2026-03-06 19:52:24 -05:00
williamp 4541559f47 remove RecodeVideo, too resource intensive
Build only (for PRs) / build-only (pull_request) Successful in 3m30s
Build and Push Docker Image / build-and-push (push) Successful in 3m46s
2026-03-06 19:40:11 -05:00
williamp 906ef98bd5 docker: fix more issues with dynamic linking
Build only (for PRs) / build-only (pull_request) Successful in 32s
Build and Push Docker Image / build-and-push (push) Successful in 2m13s
2026-03-06 10:04:19 -05:00
williamp 640c952b20 actions: adjust build-only for new PRs 2026-03-06 10:03:50 -05:00
williamp f30686fd7c start pushing test images
Build only (for PRs) / build-only (push) Has been cancelled
Build and Push Docker Image / build-and-push (push) Successful in 7m31s
2026-03-05 23:28:58 -05:00
williamp eceb3b3d76 fix multiarch in ffmpeg stage
Build only (for PRs) / build-only (push) Successful in 27s
2026-03-05 23:18:57 -05:00
williamp 23a27217df actions: fix wording
Build only (for PRs) / build-only (push) Has been cancelled
2026-03-05 22:40:57 -05:00
williamp 82a6421c88 actions: create build-only workflow for testing automated builds and later for PR autochecks
Build only (for PRs) / build-only (push) Failing after 5m7s
2026-03-05 22:37:42 -05:00
williamp c72bc42496 renovate: track yt-dlp version from dockerfiles 2026-03-05 22:25:33 -05:00
williamp 2c99fbf517 update flake
Build and Push Docker Image / build-and-push (push) Successful in 18s
Build and Push Docker Image / deploy-on-green (push) Successful in 7s
2026-03-05 19:36:59 -05:00
williamp 81968a6811 Merge pull request 'chore(deps): update docker/build-push-action action to v7' (#42) from renovate/docker-build-push-action-7.x into master
Build and Push Docker Image / build-and-push (push) Successful in 13s
Build and Push Docker Image / deploy-on-green (push) Successful in 7s
Reviewed-on: #42
2026-03-05 23:44:23 +00:00
renovate-bot 7d83fd8518 chore(deps): update docker/build-push-action action to v7 2026-03-05 22:01:13 +00:00
williamp 7b34919e72 Merge pull request 'chore(deps): update docker/setup-buildx-action action to v4' (#41) from renovate/docker-setup-buildx-action-4.x into master
Build and Push Docker Image / build-and-push (push) Successful in 2m53s
Build and Push Docker Image / deploy-on-green (push) Successful in 7s
Reviewed-on: #41
2026-03-05 14:05:38 +00:00
renovate-bot 98fec74ac0 chore(deps): update docker/setup-buildx-action action to v4 2026-03-05 08:01:26 +00:00
williamp 2269104805 Merge pull request 'chore(deps): update docker/login-action action to v4' (#40) from renovate/docker-login-action-4.x into master
Build and Push Docker Image / build-and-push (push) Successful in 3m5s
Build and Push Docker Image / deploy-on-green (push) Successful in 8s
Reviewed-on: #40
2026-03-04 13:47:45 +00:00
williamp 4bea5e020f Merge pull request 'chore(deps): update dependency discord.py to v2.7.1' (#39) from renovate/discord.py-2.x into master
Build and Push Docker Image / build-and-push (push) Successful in 3m8s
Build and Push Docker Image / deploy-on-green (push) Successful in 7s
Reviewed-on: #39
2026-03-04 13:43:27 +00:00
williamp 60803961b3 Merge pull request 'chore(deps): update dependency yt-dlp to v2026.3.3' (#38) from renovate/yt-dlp-2026.x into master
Build and Push Docker Image / deploy-on-green (push) Has been cancelled
Build and Push Docker Image / build-and-push (push) Has been cancelled
Reviewed-on: #38
2026-03-04 13:43:10 +00:00
renovate-bot 197e35314a chore(deps): update docker/login-action action to v4 2026-03-04 10:01:13 +00:00
renovate-bot db0c0a3893 chore(deps): update dependency discord.py to v2.7.1 2026-03-03 19:01:27 +00:00
renovate-bot 46fec9b85a chore(deps): update dependency yt-dlp to v2026.3.3 2026-03-03 17:02:19 +00:00
williamp 204404b761 update flake for latest yt-dlp
Build and Push Docker Image / build-and-push (push) Successful in 4m3s
Build and Push Docker Image / deploy-on-green (push) Successful in 11s
2026-03-02 20:10:03 -05:00
williamp 6e7fc73420 Merge pull request 'chore(deps): update dependency python-dotenv to v1.2.2' (#37) from renovate/python-dotenv-1.x into master
Build and Push Docker Image / build-and-push (push) Successful in 2m51s
Build and Push Docker Image / deploy-on-green (push) Successful in 7s
Reviewed-on: #37
2026-03-02 16:26:46 +00:00
renovate-bot 67c85aebf9 chore(deps): update dependency python-dotenv to v1.2.2 2026-03-01 16:00:47 +00:00
williamp b9088d932c Merge pull request 'chore(deps): update dependency discord.py to v2.7.0' (#36) from renovate/discord.py-2.x into master
Build and Push Docker Image / build-and-push (push) Successful in 3m39s
Build and Push Docker Image / deploy-on-green (push) Successful in 11s
Reviewed-on: #36
2026-02-28 21:38:46 +00:00
renovate-bot 8c1d044f79 chore(deps): update dependency discord.py to v2.7.0 2026-02-27 19:02:10 +00:00
williamp f688ee035f Merge pull request 'chore(deps): update dependency yt-dlp to v2026.2.21' (#35) from renovate/yt-dlp-2026.x into master
Build and Push Docker Image / build-and-push (push) Successful in 2m41s
Build and Push Docker Image / deploy-on-green (push) Successful in 7s
Reviewed-on: #35
2026-02-21 22:25:02 +00:00
renovate-bot 7fd5d93b6d chore(deps): update dependency yt-dlp to v2026.2.21 2026-02-21 21:01:26 +00:00
williamp d7ad90a1d5 actions: add duplicate detection
Build and Push Docker Image / build-and-push (push) Successful in 2m59s
Build and Push Docker Image / deploy-on-green (push) Successful in 8s
2026-02-06 21:45:08 -05:00
williamp ac5abffd74 Merge pull request 'chore(deps): update python docker tag to v3.14.3' (#34) from renovate/python-3.x into master
Build and Push Docker Image / build-and-push (push) Successful in 2m40s
Build and Push Docker Image / deploy-on-green (push) Successful in 9s
Reviewed-on: #34
2026-02-05 00:38:18 +00:00
renovate-bot 1c43c62523 chore(deps): update python docker tag to v3.14.3 2026-02-04 23:00:45 +00:00
williamp bef0a4d593 Merge pull request 'chore(deps): update dependency yt-dlp to v2026.2.4' (#33) from renovate/yt-dlp-2026.x into master
Build and Push Docker Image / build-and-push (push) Successful in 5m17s
Build and Push Docker Image / deploy-on-green (push) Successful in 15s
Reviewed-on: #33
2026-02-04 01:32:58 +00:00
renovate-bot bf7739228f chore(deps): update dependency yt-dlp to v2026.2.4 2026-02-04 01:01:00 +00:00
williamp 270934613f Merge pull request 'chore(deps): update dependency yt-dlp to v2026.1.31' (#32) from renovate/yt-dlp-2026.x into master
Build and Push Docker Image / build-and-push (push) Successful in 6m27s
Build and Push Docker Image / deploy-on-green (push) Successful in 10s
Reviewed-on: #32
2026-02-01 14:55:05 +00:00
renovate-bot 5cea64626c chore(deps): update dependency yt-dlp to v2026.1.31 2026-02-01 01:01:03 +00:00
williamp 70d72759ce Merge pull request 'chore(deps): update dependency yt-dlp to v2026' (#31) from renovate/yt-dlp-2026.x into master
Build and Push Docker Image / build-and-push (push) Successful in 21s
Build and Push Docker Image / deploy-on-green (push) Successful in 9s
Reviewed-on: #31
2026-01-31 19:02:01 +00:00
renovate-bot c537874adb chore(deps): update dependency yt-dlp to v2026 2026-01-29 18:02:10 +00:00
williamp b496d14cf7 flake: add go and yt-dlp for refactor
Build and Push Docker Image / build-and-push (push) Successful in 23s
Build and Push Docker Image / deploy-on-green (push) Successful in 9s
2026-01-26 20:34:04 -05:00
williamp c2de1abfd2 flake: check for existance of python project
Build and Push Docker Image / build-and-push (push) Successful in 18s
Build and Push Docker Image / deploy-on-green (push) Successful in 8s
2026-01-26 20:28:23 -05:00
williamp 635d5d5113 nix dev environment: update flake and add deno
Build and Push Docker Image / build-and-push (push) Successful in 22s
Build and Push Docker Image / deploy-on-green (push) Successful in 8s
2026-01-21 15:42:47 -05:00
6 changed files with 92 additions and 28 deletions
+9 -4
View File
@@ -23,14 +23,14 @@ jobs:
# Set up Docker Buildx for building the image
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
uses: docker/setup-buildx-action@v4
with:
driver: remote
endpoint: 'tcp://buildkitd:1234'
# Log in to the Gitea container registry
- name: Log in to Gitea Container Registry
uses: docker/login-action@v3
uses: docker/login-action@v4
with:
registry: git.dubyatp.xyz
username: williamp
@@ -38,7 +38,7 @@ jobs:
# Build and push the Docker image
- name: Build and Push Docker Image
uses: docker/build-push-action@v6
uses: docker/build-push-action@v7
with:
context: . # Build context (current directory)
file: ./Dockerfile # Path to Dockerfile
@@ -75,8 +75,13 @@ jobs:
git config --local user.signingkey ~/.ssh/id_ed25519
git config --local gpg.format ssh
git config --local commit.gpgsign true
git commit -a -m "yt-dlp-bot: deploy update to ${{ needs.build-and-push.outputs.sha_short }}"
if [ -n "$(git status --porcelain)" ]; then
git commit -a -m "yt-dlp-bot: deploy update to ${{ needs.build-and-push.outputs.sha_short }}"
else
echo "No changes to commit, skipping..."
fi
exit 0
- name: Push changes
uses: ad-m/github-push-action@v1.0.0
with:
+35
View File
@@ -0,0 +1,35 @@
name: Build only (for PRs)
on:
pull_request:
jobs:
build-only:
runs-on: ubuntu-latest # Use a runner with Docker support
container: ghcr.io/catthehacker/ubuntu:act-latest # Image with Docker pre-installed
outputs:
sha_short: ${{ steps.vars.outputs.sha_short }}
steps:
# Checkout the repository code
- name: Checkout repository
uses: actions/checkout@v6
- name: Set outputs
id: vars
run: |
echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
# Set up Docker Buildx for building the image
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
driver: remote
endpoint: 'tcp://buildkitd:1234'
# Build the Docker image
- name: Build Docker Image
uses: docker/build-push-action@v6
with:
context: . # Build context (current directory)
file: ./Dockerfile # Path to Dockerfile
platforms: "linux/amd64,linux/arm64"
+26 -19
View File
@@ -9,42 +9,49 @@ ARG YT_DLP_VERSION="2026.03.03"
# Deno builder stage
FROM denoland/deno:bin-2.6.6@sha256:9f18d20207f2699595ea26d14e0b7e123cd0cd01100a577bc11f8ca5906c2d81 AS deno-builder
################################################################################
# FFmpeg builder stage
FROM debian:13-slim@sha256:1d3c811171a08a5adaa4a163fbafd96b61b87aa871bbc7aa15431ac275d3d430 AS ffmpeg-builder
RUN apt-get update && \
apt-get install -y --no-install-recommends ffmpeg
RUN mkdir -p /rootfs/bin && \
cp /usr/bin/ffmpeg /usr/bin/ffprobe /rootfs/bin/ && \
ldd /usr/bin/ffmpeg | grep "=> /" | awk '{print $3}' | \
xargs -I '{}' cp --parents '{}' /rootfs && \
cp --parents /lib/x86_64-linux-gnu/libdl.so.2 /rootfs && \
cp --parents /lib/x86_64-linux-gnu/libpthread.so.0 /rootfs && \
cp --parents /lib/x86_64-linux-gnu/libutil.so.1 /rootfs && \
cp --parents /lib/x86_64-linux-gnu/librt.so.1 /rootfs && \
cp --parents /lib64/ld-linux-x86-64.so.2 /rootfs
################################################################################
# YT-DLP builder stage
FROM alpine:3.23@sha256:25109184c71bdad752c8312a8623239686a9a2071e8825f20acb8f2198c3f659 AS yt-dlp-builder
ARG YT_DLP_VERSION
ARG TARGETARCH
RUN mkdir -p /rootfs/target /rootfs/tmp /rootfs/bin
ADD "https://github.com/yt-dlp/yt-dlp/releases/download/${YT_DLP_VERSION}/yt-dlp_linux" /yt-dlp_linux
ADD "https://github.com/yt-dlp/yt-dlp/releases/download/${YT_DLP_VERSION}/SHA2-256SUMS" /SHA2-256SUMS
ADD "https://github.com/yt-dlp/yt-dlp/releases/download/${YT_DLP_VERSION}/SHA2-256SUMS.sig" /SHA2-256SUMS.sig
ADD "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0xAC0CBBE6848D6A873464AF4E57CF65933B5A7581" "/yt-dlp_pubkey.asc"
RUN apk add --no-cache gnupg && \
gpg --import /yt-dlp_pubkey.asc && \
gpg --verify /SHA2-256SUMS.sig /SHA2-256SUMS && \
grep " yt-dlp_linux$" /SHA2-256SUMS | sha256sum -c -
gpg --verify /SHA2-256SUMS.sig /SHA2-256SUMS
RUN mv /yt-dlp_linux /rootfs/bin/yt-dlp && \
RUN case "$TARGETARCH" in \
amd64) YT_DLP_FILE="yt-dlp_linux" ;; \
arm64) YT_DLP_FILE="yt-dlp_linux_aarch64" ;; \
*) echo "Unsupported architecture: $TARGETARCH" && exit 1 ;; \
esac && \
wget -qO "/${YT_DLP_FILE}" "https://github.com/yt-dlp/yt-dlp/releases/download/${YT_DLP_VERSION}/${YT_DLP_FILE}" && \
grep " ${YT_DLP_FILE}$" /SHA2-256SUMS | sha256sum -c - && \
mv "/${YT_DLP_FILE}" /rootfs/bin/yt-dlp && \
chmod 755 /rootfs/bin/yt-dlp && \
chmod 1777 /rootfs/tmp
################################################################################
# FFmpeg builder stage
FROM debian:13-slim@sha256:1d3c811171a08a5adaa4a163fbafd96b61b87aa871bbc7aa15431ac275d3d430 AS ffmpeg-builder
RUN apt-get update && \
apt-get install -y --no-install-recommends ffmpeg
COPY --from=yt-dlp-builder /rootfs/bin/yt-dlp /yt-dlp
RUN mkdir -p /rootfs/bin && \
cp /usr/bin/ffmpeg /usr/bin/ffprobe /rootfs/bin/ && \
{ ldd /usr/bin/ffmpeg; ldd /yt-dlp; } 2>/dev/null | \
grep -o '/[^ ]*' | sort -u | \
xargs -I '{}' cp --parents '{}' /rootfs && \
LIBDIR=$(dirname "$(find /rootfs -name 'libc.so.6' | head -1)") && \
for stub in libutil.so.1 libdl.so.2 libpthread.so.0 librt.so.1; do \
[ -f "${LIBDIR}/${stub}" ] || ln -sf libc.so.6 "${LIBDIR}/${stub}"; \
done
################################################################################
# App builder stage
FROM golang:1.25.8-trixie@sha256:bc16125656839ffe56154c675f7a9662bec2ef7d4060177239914e7c6d2fd8a8 AS app-builder
-1
View File
@@ -154,7 +154,6 @@ func DownloadVideo(out_dir, temp_dir, url string, opts DownloadOptions, progress
SetExecutable(ytdlpBinary).
Paths(homePath).
Paths(tempPath).
RecodeVideo("mp4").
ProgressFunc(100*time.Millisecond, func(prog ytdlp.ProgressUpdate) {
if prog.Status == ytdlp.ProgressStatusFinished ||
prog.Status == ytdlp.ProgressStatusStarting ||
+3
View File
@@ -46,8 +46,11 @@
.venv/bin/pip install -r ./app/requirements.txt
source .venv/bin/activate
fi
<<<<<<< HEAD
=======
export YTDLP_BIN=${pkgs.lib.getExe pkgs.yt-dlp}
>>>>>>> v1-refactor
'';
};
});
+16 -1
View File
@@ -1,3 +1,18 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json"
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"customManagers": [
{
"description": "Update yt-dlp version in Dockerfiles",
"customType": "regex",
"managerFilePatterns": [
"/^Dockerfile$/"
],
"matchStrings": [
"ARG YT_DLP_VERSION=\"(?<currentValue>.*?)\""
],
"datasourceTemplate": "github-tags",
"depNameTemplate": "yt-dlp/yt-dlp",
"versioningTemplate": "regex:^(?<major>\\d{4})\\.(?<minor>\\d{2})\\.(?<patch>\\d{2})$"
}
]
}