# check_own: a release's installer, however old, downloads the release's binary when the
# release publishes one, and says so in the same words.
check_own(){
local log="$1"
if["${BINARY:-}"!=yes];then
echo"::notice::release ${TAG} publishes no ${ASSET}; its installer builds it from source"
return 0
fi
has "the release's installer installed the release's binary""installed ${ASSET}${TAG} at ${HOST_BIN}""$log"
}
# check_readme: this commit's installer takes everything from a release that publishes its
# SHA256SUMS and builds nothing on the host; from one without, it builds the tag from source
# and says why.
check_readme(){
local log="$1" role
if["${BINARY:-}"=yes]&&["${SUMS:-}"=yes];then
has "the binary is the release's""installed ${ASSET}${TAG} at ${HOST_BIN}""$log"
has "the images and plugin come from the release""release ${TAG}'s prebuilt images and Velocity plugin are installed as published""$log"
for role in felis limbo lobby paper;do
has_re "felis/${role} is the release's""felis/${role}:[^ ]* is the release's""$log"
done
has_re "the registry image is the release's""docker.io/library/registry@sha256:[0-9a-f]* is the release's""$log"
has_re "the postgres image is the release's""docker.io/library/postgres@sha256:[0-9a-f]* is the release's""$log"
has "felis-velocity.jar is the release's""felis-velocity.jar is the release's""$log"
lacks_re "nothing fell back to a build or a pull""on this host instead|from Docker Hub instead|building felis from source""$log"
lacks_re "Docker was left alone""docker already installed|installing docker|docker running""$log"
elif["${BINARY:-}"=yes];then
has "the source build says why""release ${TAG} publishes no SHA256SUMS, so ${ASSET} cannot be verified; building ${TAG} from source on this host instead""$log"
echo"::warning::release ${TAG} publishes no SHA256SUMS, so the README's install builds ${TAG} from source on the host, Docker included; a release cut by release.yml puts it on the assets"
else
has "the source build says why""release ${TAG} publishes no usable ${ASSET}; building ${TAG} from source on this host instead""$log"
echo"::warning::release ${TAG} publishes no ${ASSET}, so the README's install builds ${TAG} from source on the host, Docker included; a release cut by release.yml puts it on the assets"