Update paths to new location

This commit is contained in:
Joshua M. Boniface 2019-05-18 11:48:22 -04:00
parent 826028f362
commit 8fbecdbc61
5 changed files with 9 additions and 9 deletions

View File

@ -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

View File

@ -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}

View File

@ -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

View File

@ -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"

View File

@ -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