Compare commits

96 Commits

Author SHA1 Message Date
98fec74ac0 chore(deps): update docker/setup-buildx-action action to v4 2026-03-05 08:01:26 +00:00
2269104805 Merge pull request 'chore(deps): update docker/login-action action to v4' (#40) from renovate/docker-login-action-4.x into master
All checks were successful
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
4bea5e020f Merge pull request 'chore(deps): update dependency discord.py to v2.7.1' (#39) from renovate/discord.py-2.x into master
All checks were successful
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
60803961b3 Merge pull request 'chore(deps): update dependency yt-dlp to v2026.3.3' (#38) from renovate/yt-dlp-2026.x into master
Some checks failed
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
197e35314a chore(deps): update docker/login-action action to v4 2026-03-04 10:01:13 +00:00
db0c0a3893 chore(deps): update dependency discord.py to v2.7.1 2026-03-03 19:01:27 +00:00
46fec9b85a chore(deps): update dependency yt-dlp to v2026.3.3 2026-03-03 17:02:19 +00:00
204404b761 update flake for latest yt-dlp
All checks were successful
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
6e7fc73420 Merge pull request 'chore(deps): update dependency python-dotenv to v1.2.2' (#37) from renovate/python-dotenv-1.x into master
All checks were successful
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
67c85aebf9 chore(deps): update dependency python-dotenv to v1.2.2 2026-03-01 16:00:47 +00:00
b9088d932c Merge pull request 'chore(deps): update dependency discord.py to v2.7.0' (#36) from renovate/discord.py-2.x into master
All checks were successful
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
8c1d044f79 chore(deps): update dependency discord.py to v2.7.0 2026-02-27 19:02:10 +00:00
f688ee035f Merge pull request 'chore(deps): update dependency yt-dlp to v2026.2.21' (#35) from renovate/yt-dlp-2026.x into master
All checks were successful
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
7fd5d93b6d chore(deps): update dependency yt-dlp to v2026.2.21 2026-02-21 21:01:26 +00:00
d7ad90a1d5 actions: add duplicate detection
All checks were successful
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
ac5abffd74 Merge pull request 'chore(deps): update python docker tag to v3.14.3' (#34) from renovate/python-3.x into master
All checks were successful
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
1c43c62523 chore(deps): update python docker tag to v3.14.3 2026-02-04 23:00:45 +00:00
bef0a4d593 Merge pull request 'chore(deps): update dependency yt-dlp to v2026.2.4' (#33) from renovate/yt-dlp-2026.x into master
All checks were successful
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
bf7739228f chore(deps): update dependency yt-dlp to v2026.2.4 2026-02-04 01:01:00 +00:00
270934613f Merge pull request 'chore(deps): update dependency yt-dlp to v2026.1.31' (#32) from renovate/yt-dlp-2026.x into master
All checks were successful
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
5cea64626c chore(deps): update dependency yt-dlp to v2026.1.31 2026-02-01 01:01:03 +00:00
70d72759ce Merge pull request 'chore(deps): update dependency yt-dlp to v2026' (#31) from renovate/yt-dlp-2026.x into master
All checks were successful
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
c537874adb chore(deps): update dependency yt-dlp to v2026 2026-01-29 18:02:10 +00:00
b496d14cf7 flake: add go and yt-dlp for refactor
All checks were successful
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
c2de1abfd2 flake: check for existance of python project
All checks were successful
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
635d5d5113 nix dev environment: update flake and add deno
All checks were successful
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
174ce1213a Merge pull request 'chore(deps): update python docker tag to v3.14.2' (#29) from renovate/python-3.x into master
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 19s
Build and Push Docker Image / deploy-on-green (push) Successful in 8s
Reviewed-on: #29
2025-12-10 04:10:26 +00:00
701aa345e4 chore(deps): update python docker tag to v3.14.2 2025-12-08 23:02:07 +00:00
29ea1740c2 Merge pull request 'chore(deps): update dependency yt-dlp to v2025.12.8' (#28) from renovate/yt-dlp-2025.x into master
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 19s
Build and Push Docker Image / deploy-on-green (push) Successful in 8s
Reviewed-on: #28
2025-12-08 15:43:37 +00:00
de070a0c1f chore(deps): update dependency yt-dlp to v2025.12.8 2025-12-08 01:00:40 +00:00
3f476bc3a2 Merge pull request 'chore(deps): update python docker tag to v3.14.1' (#27) from renovate/python-3.x into master
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 3m16s
Build and Push Docker Image / deploy-on-green (push) Successful in 8s
Reviewed-on: #27
2025-12-03 16:44:08 +00:00
e76f082b0d chore(deps): update python docker tag to v3.14.1 2025-12-03 02:00:39 +00:00
1ef217f9dd Merge pull request 'chore(deps): update actions/checkout action to v6' (#26) from renovate/actions-checkout-6.x into master
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 20s
Build and Push Docker Image / deploy-on-green (push) Successful in 8s
Reviewed-on: #26
2025-11-21 18:46:07 +00:00
373348a336 chore(deps): update actions/checkout action to v6 2025-11-20 17:00:51 +00:00
db488e06ab fix syntax
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 2m58s
Build and Push Docker Image / deploy-on-green (push) Successful in 9s
2025-11-11 22:29:39 -05:00
e124ea31de aaaaaargh, _ instead of -
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 2m57s
Build and Push Docker Image / deploy-on-green (push) Successful in 8s
2025-11-11 22:21:49 -05:00
2f47bbd848 hotfix: specify ejs:github remote component
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 3m8s
Build and Push Docker Image / deploy-on-green (push) Successful in 9s
2025-11-11 22:11:43 -05:00
709ccddf82 Merge pull request 'chore(deps): update dependency yt-dlp to v2025.11.12' (#25) from renovate/yt-dlp-2025.x into master
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 3m0s
Build and Push Docker Image / deploy-on-green (push) Successful in 41s
Reviewed-on: #25
2025-11-12 02:48:11 +00:00
37dfa7c208 chore(deps): update dependency yt-dlp to v2025.11.12 2025-11-12 02:00:43 +00:00
8eb6bf3abc Merge pull request 'chore(deps): update dependency python-dotenv to v1.2.1' (#24) from renovate/python-dotenv-1.x into master
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 2m41s
Build and Push Docker Image / deploy-on-green (push) Successful in 9s
Reviewed-on: #24
2025-10-26 18:15:07 +00:00
d98e96b4e2 chore(deps): update dependency python-dotenv to v1.2.1 2025-10-26 16:00:35 +00:00
0c21a854d2 add Deno to image
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 2m39s
Build and Push Docker Image / deploy-on-green (push) Successful in 9s
2025-10-22 19:04:11 -04:00
0c1e715f98 Revert "use yt-dlp[default] to ensure Deno will be included"
Some checks failed
Build and Push Docker Image / deploy-on-green (push) Has been cancelled
Build and Push Docker Image / build-and-push (push) Has been cancelled
This reverts commit a3a74571b4.
2025-10-22 18:17:23 -04:00
a3a74571b4 use yt-dlp[default] to ensure Deno will be included
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 28s
Build and Push Docker Image / deploy-on-green (push) Has been skipped
2025-10-22 18:13:36 -04:00
d29c0453e4 Merge pull request 'chore(deps): update dependency yt-dlp to v2025.10.22' (#23) from renovate/yt-dlp-2025.x into master
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 2m34s
Build and Push Docker Image / deploy-on-green (push) Successful in 9s
Reviewed-on: #23
2025-10-22 21:33:07 +00:00
84f38f39e3 chore(deps): update dependency yt-dlp to v2025.10.22 2025-10-22 20:00:42 +00:00
c2c228d8de chore: sign deploy commits
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 16s
Build and Push Docker Image / deploy-on-green (push) Successful in 8s
2025-10-22 11:03:48 -04:00
cef71e1ba3 Merge pull request 'Update dependency yt-dlp to v2025.10.14' (#22) from renovate/yt-dlp-2025.x into master
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 2m37s
Build and Push Docker Image / deploy-on-green (push) Successful in 8s
Reviewed-on: #22
2025-10-15 02:16:05 +00:00
5ace6b5c91 Update dependency yt-dlp to v2025.10.14 2025-10-15 00:01:02 +00:00
7f1182f5c7 Merge pull request 'Update python Docker tag to v3.14.0' (#20) from renovate/python-3.x into master
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 2m58s
Build and Push Docker Image / deploy-on-green (push) Successful in 9s
Reviewed-on: #20
2025-10-09 12:48:51 +00:00
f81346b678 Merge pull request 'Update dependency discord.py to v2.6.4' (#21) from renovate/discord.py-2.x into master
Some checks failed
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: #21
2025-10-09 12:48:42 +00:00
8f0e9f8b96 Update dependency discord.py to v2.6.4 2025-10-08 22:00:47 +00:00
f52505ccb6 Update python Docker tag to v3.14.0 2025-10-08 14:00:44 +00:00
0cf1b4a6df Revert "install zstd for it to work on 3.14"
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 21s
Build and Push Docker Image / deploy-on-green (push) Successful in 8s
This reverts commit 0821359792.
2025-10-08 09:21:04 -04:00
0821359792 install zstd for it to work on 3.14
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 2m54s
Build and Push Docker Image / deploy-on-green (push) Successful in 9s
2025-10-08 09:16:48 -04:00
7c3905e65f Revert "Update python Docker tag to v3.14.0"
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 18s
Build and Push Docker Image / deploy-on-green (push) Successful in 9s
This reverts commit 59f6bcb22e.
2025-10-08 09:07:46 -04:00
2d9241ba6e Merge pull request 'Update python Docker tag to v3.14.0' (#18) from renovate/python-3.x into master
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 2m55s
Build and Push Docker Image / deploy-on-green (push) Successful in 8s
Reviewed-on: #18
2025-10-08 13:02:04 +00:00
59f6bcb22e Update python Docker tag to v3.14.0 2025-10-07 22:00:49 +00:00
236ef0dcda revert feb99c0dc1
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 22s
Build and Push Docker Image / deploy-on-green (push) Successful in 8s
revert add args due to new update
2025-09-29 16:46:15 +00:00
f7cb27b166 Merge pull request 'Update dependency yt-dlp to v2025.9.26' (#17) from renovate/yt-dlp-2025.x into master
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 19s
Build and Push Docker Image / deploy-on-green (push) Successful in 8s
Reviewed-on: #17
2025-09-27 04:19:53 +00:00
2c746eff68 Update dependency yt-dlp to v2025.9.26 2025-09-26 23:00:48 +00:00
feb99c0dc1 add args to fix error (https://github.com/yt-dlp/yt-dlp/issues/14456#issuecomment-3339167951)
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 2m29s
Build and Push Docker Image / deploy-on-green (push) Successful in 9s
2025-09-26 15:48:00 -04:00
d06af692c3 Merge pull request 'Update dependency yt-dlp to v2025.9.23' (#16) from renovate/yt-dlp-2025.x into master
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 2m25s
Build and Push Docker Image / deploy-on-green (push) Successful in 9s
Reviewed-on: #16
2025-09-23 18:45:27 +00:00
a56d8a469d Update dependency yt-dlp to v2025.9.23 2025-09-23 07:00:42 +00:00
44b59e3d4a Merge pull request 'Update ad-m/github-push-action action to v1' (#15) from renovate/ad-m-github-push-action-1.x into master
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 2m23s
Build and Push Docker Image / deploy-on-green (push) Successful in 9s
Reviewed-on: #15
2025-09-13 04:28:12 +00:00
be664a178b Update ad-m/github-push-action action to v1 2025-09-12 18:00:45 +00:00
d478896aad Merge pull request 'Update dependency yt-dlp to v2025.9.5' (#14) from renovate/yt-dlp-2025.x into master
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 2m32s
Build and Push Docker Image / deploy-on-green (push) Successful in 9s
Reviewed-on: #14
2025-09-06 02:32:01 +00:00
72a9aaf2ab Update dependency yt-dlp to v2025.9.5 2025-09-06 00:00:43 +00:00
5c5cba7ffc Merge pull request 'Update dependency discord.py to v2.6.3' (#13) from renovate/discord.py-2.x into master
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 2m29s
Build and Push Docker Image / deploy-on-green (push) Successful in 6s
Reviewed-on: #13
2025-08-31 20:58:55 +00:00
e3efed9255 Merge pull request 'Update dependency yt-dlp to v2025.8.27' (#12) from renovate/yt-dlp-2025.x into master
Some checks failed
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: #12
2025-08-31 20:58:46 +00:00
b7145dca8d Update dependency discord.py to v2.6.3 2025-08-31 20:01:09 +00:00
4bfec6e8d3 Update dependency yt-dlp to v2025.8.27 2025-08-28 01:00:44 +00:00
df8c7e9f14 Merge pull request 'Update dependency discord.py to v2.6.2' (#11) from renovate/discord.py-2.x into master
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 2m13s
Build and Push Docker Image / deploy-on-green (push) Successful in 6s
Reviewed-on: #11
2025-08-26 20:35:45 +00:00
f31a5707d9 Update dependency discord.py to v2.6.2 2025-08-24 18:00:42 +00:00
468603fa28 Merge pull request 'Update dependency discord.py to v2.6.1' (#10) from renovate/discord.py-2.x into master
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 2m17s
Build and Push Docker Image / deploy-on-green (push) Successful in 6s
Reviewed-on: #10
2025-08-24 15:19:19 +00:00
373427b646 Update dependency discord.py to v2.6.1 2025-08-24 14:00:39 +00:00
a8a24ef9bc Merge pull request 'Update dependency yt-dlp to v2025.8.22' (#9) from renovate/yt-dlp-2025.x into master
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 2m21s
Build and Push Docker Image / deploy-on-green (push) Successful in 6s
Reviewed-on: #9
2025-08-23 20:57:44 +00:00
e867d46c5a Update dependency yt-dlp to v2025.8.22 2025-08-23 01:00:47 +00:00
db2bff7fd3 Merge pull request 'Update actions/checkout action to v5' (#5) from renovate/actions-checkout-5.x into master
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 15s
Build and Push Docker Image / deploy-on-green (push) Successful in 7s
Reviewed-on: #5
2025-08-23 00:07:57 +00:00
963e1efd3d Merge pull request 'Update dependency yt-dlp to v2025.8.20' (#8) from renovate/yt-dlp-2025.x into master
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 2m25s
Build and Push Docker Image / deploy-on-green (push) Successful in 8s
Reviewed-on: #8
2025-08-20 11:00:15 +00:00
1c798e9f66 Update dependency yt-dlp to v2025.8.20 2025-08-20 03:00:42 +00:00
96a35b6941 Merge pull request 'Update dependency discord.py to v2.6.0' (#7) from renovate/discord.py-2.x into master
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 2m21s
Build and Push Docker Image / deploy-on-green (push) Successful in 7s
Reviewed-on: #7
2025-08-18 23:28:47 +00:00
4f8af93d04 Update dependency discord.py to v2.6.0 2025-08-18 20:00:50 +00:00
600969390e Merge pull request 'Update python Docker tag to v3.13.7' (#6) from renovate/python-3.x into master
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 2m12s
Build and Push Docker Image / deploy-on-green (push) Successful in 7s
Reviewed-on: #6
2025-08-16 16:10:30 +00:00
adacb7e93c Update python Docker tag to v3.13.7 2025-08-16 01:00:44 +00:00
80ae56a3e7 Update actions/checkout action to v5 2025-08-11 13:00:49 +00:00
1a61e23204 Merge pull request 'Update dependency yt-dlp to v2025.8.11' (#4) from renovate/yt-dlp-2025.x into master
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 2m7s
Build and Push Docker Image / deploy-on-green (push) Successful in 9s
Reviewed-on: #4
2025-08-11 08:09:08 +00:00
319ffd2106 Update dependency yt-dlp to v2025.8.11 2025-08-11 05:00:44 +00:00
21f1da5cce Merge pull request 'Update python Docker tag to v3.13.6' (#3) from renovate/python-3.x into master
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 18s
Build and Push Docker Image / deploy-on-green (push) Successful in 9s
Reviewed-on: #3
2025-08-08 07:50:28 +00:00
2cb60ef696 Update python Docker tag to v3.13.6 2025-08-07 19:00:41 +00:00
c0a9422fbd exclude all untested formats
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 2m15s
Build and Push Docker Image / deploy-on-green (push) Successful in 10s
2025-08-02 15:43:53 -04:00
dbcc948239 Merge pull request 'Update dependency yt-dlp to v2025.7.21' (#2) from renovate/yt-dlp-2025.x into master
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 3m31s
Build and Push Docker Image / deploy-on-green (push) Successful in 7s
Reviewed-on: #2
2025-07-22 00:13:58 +00:00
a4a6941453 Update dependency yt-dlp to v2025.7.21 2025-07-22 00:00:40 +00:00
bffe801da5 correct workflow
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 19s
Build and Push Docker Image / deploy-on-green (push) Successful in 8s
2025-07-16 23:10:05 -04:00
82304688b8 implement deploy on green
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 19s
Build and Push Docker Image / deploy-on-green (push) Successful in 8s
2025-07-16 23:00:35 -04:00
3ffb2e4640 add error reporting to download process
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 2m53s
2025-07-12 16:51:39 -04:00
7 changed files with 90 additions and 21 deletions

View File

@@ -9,10 +9,12 @@ jobs:
build-and-push:
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@v4
uses: actions/checkout@v6
- name: Set outputs
id: vars
@@ -21,18 +23,18 @@ 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
password: ${{ secrets.REGISTRY_TOKEN }} # Personal Access Token for authentication
password: ${{ secrets.ACTIONS_TOKEN }} # Personal Access Token for authentication
# Build and push the Docker image
- name: Build and Push Docker Image
@@ -46,3 +48,43 @@ jobs:
git.dubyatp.xyz/williamp/yt-dlp-bot:latest
git.dubyatp.xyz/williamp/yt-dlp-bot:${{steps.vars.outputs.sha_short }}
# Tags the image with 'latest' and the commit SHA
deploy-on-green:
needs: build-and-push
runs-on: ubuntu-latest
if: ${{ success() }}
steps:
- name: Checkout target repository
uses: actions/checkout@v6
with:
repository: infrastructure/core-apps
token: ${{ secrets.ACTIONS_TOKEN }}
ref: main
- name: Update image tag in deployment.yaml
uses: mikefarah/yq@master
with:
cmd: yq eval '.spec.template.spec.containers[0].image = "git.dubyatp.xyz/williamp/yt-dlp-bot:${{ needs.build-and-push.outputs.sha_short }}"' -i yt-dlp-bot/deployment.yaml
- name: Commit changes
run: |
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_ed25519
chmod 600 ~/.ssh/id_ed25519
git config --local user.email "actions@noreply.dubyatp.xyz"
git config --local user.name "actions[bot]"
git config --local user.signingkey ~/.ssh/id_ed25519
git config --local gpg.format ssh
git config --local commit.gpgsign true
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:
github_token: ${{ secrets.ACTIONS_TOKEN }}
repository: infrastructure/core-apps
branch: main

View File

@@ -1,6 +1,6 @@
FROM python:3.13.5-alpine3.22
FROM python:3.14.3-alpine3.22
COPY ./app /app
WORKDIR /app
RUN apk add ffmpeg
RUN apk add ffmpeg deno
RUN pip install -r requirements.txt
CMD ["python", "/app/main.py"]

View File

@@ -126,16 +126,29 @@ class DownloadVideo(ui.View):
worker_task = asyncio.create_task(progress_worker(msg))
error = None
async def progress_callback(percent):
await progress_queue.put(percent)
await asyncio.to_thread(
ytdlp.download_video, self.url, format_string, out_path, temp_path, progress_callback, asyncio.get_event_loop()
)
loop = asyncio.get_running_loop()
def threaded_download():
nonlocal error
try:
ytdlp.download_video(
self.url, format_string, out_path, temp_path, progress_callback, loop
)
except Exception as e:
error = e
await asyncio.to_thread(threaded_download)
stop_event.set()
await worker_task
if error:
await msg.edit(content=f"❌ Download failed: {error}")
return
# Show completion and summary
await msg.edit(content="✅ Download complete!\n"
)

View File

@@ -1,3 +1,3 @@
discord.py==2.5.2
python-dotenv==1.1.1
yt-dlp==2025.6.30
discord.py==2.7.1
python-dotenv==1.2.2
yt-dlp==2026.3.3

View File

@@ -2,7 +2,9 @@ import yt_dlp
import asyncio
def get_formats(url: str):
ydl = yt_dlp.YoutubeDL()
ydl = yt_dlp.YoutubeDL(params={
'remote_components': ['ejs:github']
})
info = ydl.extract_info(url, download=False)
video_options = []
@@ -10,7 +12,7 @@ def get_formats(url: str):
for fmt in info['formats']:
# Video-only
if fmt.get('vcodec') != 'none' and fmt.get('acodec') == 'none':
if fmt.get('vcodec') != 'none' and fmt.get('acodec') == 'none' and fmt.get('__needs_testing') == None:
video_options.append({
'height': fmt.get('height'),
'resolution': fmt.get('resolution'),
@@ -19,7 +21,7 @@ def get_formats(url: str):
'tbr': fmt.get('tbr'),
})
# Audio-only
elif fmt.get('acodec') != 'none' and fmt.get('vcodec') == 'none':
elif fmt.get('acodec') != 'none' and fmt.get('vcodec') == 'none' and fmt.get('__needs_testing') == None:
audio_options.append({
'format': fmt.get('format'),
'format_id': fmt.get('format_id'),

6
flake.lock generated
View File

@@ -2,11 +2,11 @@
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1751498133,
"narHash": "sha256-QWJ+NQbMU+NcU2xiyo7SNox1fAuwksGlQhpzBl76g1I=",
"lastModified": 1770537093,
"narHash": "sha256-pF1quXG5wsgtyuPOHcLfYg/ft/QMr8NnX0i6tW2187s=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "d55716bb59b91ae9d1ced4b1ccdea7a442ecbfdb",
"rev": "fef9403a3e4d31b0a23f0bacebbec52c248fbb51",
"type": "github"
},
"original": {

View File

@@ -25,14 +25,26 @@
pkgs.python314
pkgs.virtualenv
pkgs.ffmpeg_6
pkgs.deno
pkgs.go
pkgs.yt-dlp
];
shellHook = ''
if [ -f .env ]; then
set -a
source .env
set +a
fi
if [ ! -d .venv ]; then
echo "Creating Python virtual environment in .venv"
python3 -m venv .venv
fi
.venv/bin/pip install -r ./app/requirements.txt
source .venv/bin/activate
if compgen -G "app/*.py" > /dev/null; then
.venv/bin/pip install -r ./app/requirements.txt
source .venv/bin/activate
fi
'';
};
});