Skip to content

Commit 51dc48c

Browse files
authored
Merge pull request #103 from standleypg-dev/deployment-update
Update release workflow
2 parents 02366a1 + 36a83c9 commit 51dc48c

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ on:
33
push:
44
branches:
55
- master
6+
workflow_dispatch:
67
jobs:
78
deploy:
89
runs-on: [self-hosted, Linux, X64]
@@ -43,4 +44,4 @@ jobs:
4344
4445
- name: Build and run with Docker Compose
4546
run: |
46-
cd deployment && docker compose -f docker-compose.yml up -d --build
47+
cd deployment && docker compose -f docker-compose.yml build --build-arg YT_DLP_CACHE_BUST=$(date +%Y%m%d) && docker compose -f docker-compose.yml up -d

deployment/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ RUN apt update && apt install -y --no-install-recommends \
6161
&& ln -sf /usr/share/zoneinfo/Asia/Singapore /etc/localtime
6262

6363
# Install latest yt-dlp directly from GitHub releases
64+
ARG YT_DLP_CACHE_BUST=latest
6465
ADD https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp /usr/local/bin/yt-dlp
6566
RUN chmod a+rx /usr/local/bin/yt-dlp
6667

0 commit comments

Comments
 (0)