Skip to content
Snippets Groups Projects
Commit ea77492e authored by akiraohgaki's avatar akiraohgaki
Browse files

CI job

parent 8614baa4
No related branches found
No related tags found
No related merge requests found
......@@ -9,4 +9,7 @@ appimage:
- /^release\-.+/
script:
- ./scripts/package appimage
- cat transfer.log
artifacts:
paths:
- build_*/ocs-store*.AppImage
expire_in: 2 days
......@@ -14,7 +14,6 @@ appimage() { # docker-image: ubuntu:14.04
install_build_deps_appimage
add_pkguser
su -c "export HOME=/home/${PKGUSER} && "${PKGSCRIPT}" build_appimage" ${PKGUSER}
transfer_file "$(find "${BUILDDIR}" -type f -name "${PKGNAME}*-x86_64.AppImage")"
}
install_build_deps_appimage() {
......@@ -48,16 +47,6 @@ export_srcarchive() {
fi
}
transfer_file() {
if [ -f "${1}" ]; then
filename="$(basename "${1}")"
transferlog="${PROJDIR}/transfer.log"
echo "Uploading ${filename}" >> "${transferlog}"
curl -fsSL -T "${1}" "https://transfer.sh/${filename}" >> "${transferlog}"
echo '' >> "${transferlog}"
fi
}
if [ "${1}" ]; then
${1}
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment