added new uploaders

This commit is contained in:
Kabooshki 2024-04-23 14:57:38 +00:00
parent dc7104e9c8
commit b93494d00e
2 changed files with 18 additions and 0 deletions

15
container-upload Executable file
View File

@ -0,0 +1,15 @@
#!/bin/bash
if [[ "$1" == "help" ]]; then
echo "Please format the command like this: container-upload <original docker image>"
exit
fi
tag=$(echo $1 | grep -o -P "(:(?P<tag>[\w.\-_]{1,127})|)$")
name=$(echo $1 | grep -o -P "(?<=\/)([a-z0-9._-]+)(?=(:([\w.\-_]{1,127})|)$)")
echo uploading $name...
sudo docker pull $1
sudo docker tag $1 gitea.henriserverack.com/archive-team/$name$tag
sudo docker push gitea.henriserverack.com/archive-team/$name$tag
echo uploaded $name to gitea.henriserverack.com/archive-team/$name$tag

3
deb-upload Executable file
View File

@ -0,0 +1,3 @@
#!/bin/bash
curl --user Archive:d8e818c6f307e1a08973ff6b281255815bd95b1d --upload-file $1 https://gitea.henriserverack.com/api/packages/Archive-Team/debian/pool/bullseye/main/upload
echo "done"