diff --git a/container-upload b/container-upload new file mode 100755 index 0000000..77a851e --- /dev/null +++ b/container-upload @@ -0,0 +1,15 @@ +#!/bin/bash +if [[ "$1" == "help" ]]; then + echo "Please format the command like this: container-upload " + exit +fi + +tag=$(echo $1 | grep -o -P "(:(?P[\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 diff --git a/deb-upload b/deb-upload new file mode 100755 index 0000000..76bb640 --- /dev/null +++ b/deb-upload @@ -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"