Implement build logic

This commit is contained in:
BtbN
2020-09-03 01:03:23 +02:00
parent 57ca78ac1d
commit c024aa01d6
10 changed files with 65 additions and 60 deletions

13
util/vars.sh Normal file
View File

@ -0,0 +1,13 @@
#!/bin/bash
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,,}"
IMAGE="$REPO/$TARGET-$VARIANT:latest"