1
0
forked from IPKM/nmreval

changed packages destination

This commit is contained in:
Markus Rosenstihl 2023-02-02 18:45:18 +01:00
parent 1cdcaff53f
commit b7337c76ac

View File

@ -4,33 +4,34 @@ if [ -z ${GO_PIPELINE_LABEL} ]; then
else else
APPIMAGE=NMReval-${GO_PIPELINE_LABEL}-x86_64.AppImage APPIMAGE=NMReval-${GO_PIPELINE_LABEL}-x86_64.AppImage
ZSYNC=NMReval-${GO_PIPELINE_LABEL}-x86_64.AppImage.zsync ZSYNC=NMReval-${GO_PIPELINE_LABEL}-x86_64.AppImage.zsync
GITEA_OWNER=IPKM-Public
# #
# AppImage # AppImage
# #
# versioned # versioned
curl --user ${gitea_user}:${gitea_token} \ curl --user ${gitea_user}:${gitea_token} \
--upload-file $APPIMAGE \ --upload-file $APPIMAGE \
https://gitea.pkm.physik.tu-darmstadt.de/api/packages/${gitea_user}/generic/NMReval/${GO_PIPELINE_LABEL}/$APPIMAGE https://gitea.pkm.physik.tu-darmstadt.de/api/packages/${GITEA_OWNER}/generic/NMReval/${GO_PIPELINE_LABEL}/$APPIMAGE
# latest # latest
curl --user ${gitea_user}:${gitea_token} --delete \ curl --user ${gitea_user}:${gitea_token} --delete \
https://gitea.pkm.physik.tu-darmstadt.de/api/packages/${gitea_user}/generic/NMReval/latest/NMReval-latest-x86_64.Appimage https://gitea.pkm.physik.tu-darmstadt.de/api/packages/${GITEA_OWNER}/generic/NMReval/latest/NMReval-latest-x86_64.Appimage
curl --user ${gitea_user}:${gitea_token} \ curl --user ${gitea_user}:${gitea_token} \
--upload-file $APPIMAGE \ --upload-file $APPIMAGE \
https://gitea.pkm.physik.tu-darmstadt.de/api/packages/${gitea_user}/generic/NMReval/latest/NMReval-latest-x86_64.Appimage https://gitea.pkm.physik.tu-darmstadt.de/api/packages/${GITEA_OWNER}/generic/NMReval/latest/NMReval-latest-x86_64.Appimage
# #
# zsync files # zsync files
# #
# versioned # versioned
curl --user ${gitea_user}:${gitea_token} \ curl --user ${gitea_user}:${gitea_token} \
--upload-file $ZSYNC \ --upload-file $ZSYNC \
https://gitea.pkm.physik.tu-darmstadt.de/api/packages/${gitea_user}/generic/NMReval/${GO_PIPELINE_LABEL}/$ZSYNC https://gitea.pkm.physik.tu-darmstadt.de/api/packages/${GITEA_OWNER}/generic/NMReval/${GO_PIPELINE_LABEL}/$ZSYNC
# latest # latest
curl --user ${gitea_user}:${gitea_token} --delete \ curl --user ${gitea_user}:${gitea_token} --delete \
https://gitea.pkm.physik.tu-darmstadt.de/api/packages/${gitea_user}/generic/NMReval/latest/NMReval-latest-x86_64.Appimage.zsync https://gitea.pkm.physik.tu-darmstadt.de/api/packages/${GITEA_OWNER}/generic/NMReval/latest/NMReval-latest-x86_64.Appimage.zsync
curl --user ${gitea_user}:${gitea_token} \ curl --user ${gitea_user}:${gitea_token} \
--upload-file $ZSYNC \ --upload-file $ZSYNC \
https://gitea.pkm.physik.tu-darmstadt.de/api/packages/${gitea_user}/generic/NMReval/latest/NMReval-latest-x86_64.Appimage.zsync https://gitea.pkm.physik.tu-darmstadt.de/api/packages/${GITEA_OWNER}/generic/NMReval/latest/NMReval-latest-x86_64.Appimage.zsync
fi fi