File: push.sh

package info (click to toggle)
hotspot 1.6.0-0.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 12,756 kB
  • sloc: cpp: 27,071; ansic: 281; sh: 261; python: 75; xml: 48; makefile: 16
file content (27 lines) | stat: -rwxr-xr-x 643 bytes parent folder | download
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