mirror of
https://github.com/BtbN/FFmpeg-Builds.git
synced 2025-04-29 22:24:28 +02:00
19 lines
312 B
Bash
Executable File
19 lines
312 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
cd "$(dirname "$0")"
|
|
|
|
if [[ $# -lt 1 || $# -gt 2 ]]; then
|
|
echo "Invalid Arguments"
|
|
exit -1
|
|
fi
|
|
|
|
TARGET="$1"
|
|
VARIANT="${2:-gpl}"
|
|
REPO="${GITHUB_REPOSITORY:-btbn/ffmpeg-builds}"
|
|
REPO="${REPO,,}"
|
|
|
|
./generate.sh "$TARGET" "$VARIANT"
|
|
|
|
exec docker build -t "$REPO/$TARGET-$VARIANT:latest" .
|