1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
#!/bin/sh
set -e
ghcr_user=$(pass show ghcr.io | grep 'login: ' | cut -d' ' -f 2)
pass show ghcr.io | head -n1 | docker login ghcr.io -u $ghcr_user --password-stdin
logout() {
docker logout ghcr.io
}
trap logout EXIT
pushDependencies()
{
tag=$1
docker tag hotspot-$tag-dependencies:latest ghcr.io/kdab/hotspot-$tag-dependencies:latest
docker push ghcr.io/kdab/hotspot-$tag-dependencies:latest
}
pushDependencies ubuntu20.04
pushDependencies ubuntu22.04
pushDependencies archlinuxqt6
pushDependencies archlinuxwithoutoptionalqt6
pushDependencies opensusetumbleweedqt6
pushDependencies fedora42qt6
pushDependencies neonqt6
|