Actually build
This commit is contained in:
parent
cbb86a4d0e
commit
57ca78ac1d
6 changed files with 95 additions and 7 deletions
|
@ -12,25 +12,26 @@ fi
|
|||
TARGET="$1"
|
||||
VARIANT="${2:-gpl}"
|
||||
REPO="${GITHUB_REPOSITORY:-btbn/ffmpeg-builds}"
|
||||
REPO="${REPO,,}"
|
||||
|
||||
to_df() {
|
||||
printf "$@" >> Dockerfile
|
||||
echo >> Dockerfile
|
||||
}
|
||||
|
||||
REPO="${REPO,,}"
|
||||
|
||||
to_df "FROM $REPO/base-$TARGET:latest"
|
||||
to_df "ENV TARGET $TARGET"
|
||||
to_df "ENV VARIANT $VARIANT"
|
||||
to_df "ENV REPO $REPO"
|
||||
|
||||
to_df "ENV FFPREFIX /opt/ffbuild"
|
||||
to_df "ENV PKG_CONFIG_LIBDIR /opt/ffbuild/lib/pkgconfig"
|
||||
|
||||
for script in scripts.d/*.sh; do
|
||||
(
|
||||
SELF="$script"
|
||||
source $script
|
||||
ffbuild_relevant || exit 0
|
||||
ffbuild_enabled || exit 0
|
||||
ffbuild_dockerstage || exit $?
|
||||
)
|
||||
done
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue