added script to upload AppImage to gitea instance

This commit is contained in:
Markus Rosenstihl 2023-01-30 12:08:01 +01:00
parent 0eb0a4be77
commit a24551e465

9
tools/upload_gitea.sh Normal file
View File

@ -0,0 +1,9 @@
#!/bin/bash
if [ -z ${GO_PIPELINE_LABEL} ]; then
echo "GO_PIPELINE_LABEL is not set. doing nothing"
else
curl --user ${gitea_user}:${gitea_token} \
--upload-file NMReval-${GO_PIPELINE_LABEL}-x86_64.AppImage \
https://gitea.pkm.physik.tu-darmstadt.de/api/packages/${gitea_user}/generic/NMReval/${GO_PIPELINE_LABEL}/NMReval-${GO_PIPELINE_LABEL}-x86_64.AppImage
fi