mirror of
https://github.com/jellyfin/jellyfin-build.git
synced 2024-11-23 13:59:52 +00:00
Update paths to new location
This commit is contained in:
parent
826028f362
commit
8fbecdbc61
@ -41,7 +41,7 @@ ssh build@repo.jellyfin.org "sudo /srv/collect-ffmpeg.sh /srv/incoming/${reponam
|
||||
# Upload artifacts to the GitHub release
|
||||
for artifact in bin/${reponame}/*.{deb,buildinfo}; do
|
||||
if [[ -f ${artifact} ]]; then
|
||||
/bin/bash /srv/webhooks/scripts/upload-artifact "${reponame}" "${tagname}" "${artifact}"
|
||||
/bin/bash /srv/jellyfin/scripts/upload-artifact "${reponame}" "${tagname}" "${artifact}"
|
||||
fi
|
||||
done
|
||||
|
||||
|
@ -74,7 +74,7 @@ for dir in bin/${reponame}/*; do
|
||||
esac
|
||||
# Upload the artifacts to the GitHub release
|
||||
for artifact in ${temp_dir}/*; do
|
||||
/bin/bash /srv/webhooks/scripts/upload-artifact "${reponame}" "${tagname}" "${artifact}"
|
||||
/bin/bash /srv/jellyfin/scripts/upload-artifact "${reponame}" "${tagname}" "${artifact}"
|
||||
done
|
||||
popd
|
||||
rm -r ${temp_dir}
|
||||
|
@ -36,7 +36,7 @@ rsync -avz bin/plugin/ build@repo.jellyfin.org:/srv/releases/plugin/
|
||||
nice_tagname="$( sed 's/^v//g' <<<"${tagname}" )"
|
||||
for artifact in bin/plugin/${reponame}/*${nice_tagname}.0.zip; do
|
||||
if [[ -f ${artifact} ]]; then
|
||||
/bin/bash /srv/webhooks/scripts/upload-artifact "${reponame}" "${tagname}" "${artifact}"
|
||||
/bin/bash /srv/jellyfin/scripts/upload-artifact "${reponame}" "${tagname}" "${artifact}"
|
||||
fi
|
||||
done
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo "Running /bin/bash /srv/webhooks/scripts/release.d/release ${1} ${2}"
|
||||
/bin/bash /srv/webhooks/scripts/release.d/release ${1} ${2} &>/dev/null &
|
||||
echo "Running /bin/bash /srv/jellyfin/scripts/release.d/release ${1} ${2}"
|
||||
/bin/bash /srv/jellyfin/scripts/release.d/release ${1} ${2} &>/dev/null &
|
||||
echo "Build launched successfully"
|
||||
|
@ -16,15 +16,15 @@ reponame="$( echo "${payload}" | jq -r '.repository.name' )"
|
||||
case ${reponame} in
|
||||
jellyfin)
|
||||
repotype="server"
|
||||
buildcmd="/srv/webhooks/scripts/build.d/build-jellyfin ${tagname}"
|
||||
buildcmd="/srv/jellyfin/scripts/build.d/build-jellyfin ${tagname}"
|
||||
;;
|
||||
jellyfin-ffmpeg)
|
||||
repotype="ffmpeg"
|
||||
buildcmd="/srv/webhooks/scripts/build.d/build-ffmpeg ${tagname}"
|
||||
buildcmd="/srv/jellyfin/scripts/build.d/build-ffmpeg ${tagname}"
|
||||
;;
|
||||
jellyfin-plugin-*)
|
||||
repotype="plugin"
|
||||
buildcmd="/srv/webhooks/scripts/build.d/build-plugin ${reponame} ${tagname}"
|
||||
buildcmd="/srv/jellyfin/scripts/build.d/build-plugin ${reponame} ${tagname}"
|
||||
;;
|
||||
*)
|
||||
echo "ERROR: Invalid repository name ${reponame}"
|
||||
@ -46,7 +46,7 @@ if [[ ${action} != "published" ]]; then
|
||||
fi
|
||||
|
||||
# Delay until there's no other release process building
|
||||
while [[ -n $( ps aux | grep "/bin/bash /srv/webhooks/scripts/release.d/[r]elease" | grep -v "${tempfile}" ) ]]; do
|
||||
while [[ -n $( ps aux | grep "/bin/bash /srv/jellyfin/scripts/release.d/[r]elease" | grep -v "${tempfile}" ) ]]; do
|
||||
sleep 10
|
||||
done
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user