Skip to content

Commit

Permalink
Update builder script to use --onedir option, modify Dockerfile synta…
Browse files Browse the repository at this point in the history
…x, and enhance GitHub Actions workflow with push trigger and file listing step
  • Loading branch information
svemat01 committed Jan 22, 2025
1 parent 03570ab commit c061a1c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/build-ytdlp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ name: Build yt-dlp Docker Image
on:
workflow_dispatch:
workflow_call:
push:
branches:
- master

env:
REGISTRY: ghcr.io
Expand Down Expand Up @@ -54,6 +57,10 @@ jobs:
type=raw,value=latest
type=raw,value=${{ steps.ytdlp_version.outputs.version }}
- name: List all files in the repository
run: |
ls -la
- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM alpine:3.19 as builder
FROM alpine:3.19 AS builder

# Build arguments with defaults
ARG CHANNEL=stable
Expand Down
2 changes: 1 addition & 1 deletion builder.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ source ~/.local/share/pipx/venvs/pyinstaller/bin/activate
python -m devscripts.install_deps --include secretstorage --include curl-cffi
python -m devscripts.make_lazy_extractors
python devscripts/update-version.py -c "${CHANNEL}" -r "${ORIGIN}" "${VERSION}"
python -m bundle.pyinstaller
python -m bundle.pyinstaller --onedir
deactivate

source ~/.local/share/pipx/venvs/staticx/bin/activate
Expand Down

0 comments on commit c061a1c

Please sign in to comment.