added new uploaders
This commit is contained in:
parent
dc7104e9c8
commit
b93494d00e
|
@ -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
|
|
@ -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"
|
Loading…
Reference in New Issue