FFmpeg-Builds/generate.sh

24 lines
435 B
Bash
Raw Normal View History

2020-09-01 22:07:54 +00:00
#!/bin/bash
2020-09-02 23:03:23 +00:00
set -xe
2020-09-01 22:07:54 +00:00
cd "$(dirname "$0")"
2020-09-02 23:03:23 +00:00
source util/vars.sh
2020-09-01 22:07:54 +00:00
2020-09-02 23:03:23 +00:00
rm -f Dockerfile
2020-09-01 22:07:54 +00:00
to_df() {
printf "$@" >> Dockerfile
echo >> Dockerfile
}
to_df "FROM docker.pkg.github.com/${REPO}/base-${TARGET}:latest"
2020-09-27 21:11:10 +00:00
to_df "ENV TARGET=$TARGET VARIANT=$VARIANT REPO=$REPO ADDINS_STR=$ADDINS_STR"
2020-09-01 22:07:54 +00:00
for script in scripts.d/*.sh; do
(
SELF="$script"
source $script
2020-09-02 16:07:59 +00:00
ffbuild_enabled || exit 0
2020-09-01 22:07:54 +00:00
ffbuild_dockerstage || exit $?
)
done