-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathenvironment.sh
More file actions
executable file
·26 lines (23 loc) · 1000 Bytes
/
environment.sh
File metadata and controls
executable file
·26 lines (23 loc) · 1000 Bytes
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
DISTROS=("rhel7" "rhel8" "rhel9" "rhel10" "sles15" "sles16" "u2004" "u2204" "u2404" "u2604" "debian12" "debian13")
# does not work for sles12
# sles12 container image requires running on a sles12 registered system
# to act as a proxy to the rpm repositories
declare -A REPOS=( [rhel7]=dev-opensvc-v3-rhel7
[rhel8]=dev-opensvc-v3-rhel8
[rhel9]=dev-opensvc-v3-rhel9
[rhel10]=dev-opensvc-v3-rhel10
[sles12]=dev-opensvc-v3-sles12
[sles15]=dev-opensvc-v3-sles15
[sles16]=dev-opensvc-v3-sles16
[u2004]=dev-opensvc-v3-focal
[u2204]=dev-opensvc-v3-jammy
[u2404]=dev-opensvc-v3-noble
[u2604]=dev-opensvc-v3-resolute
[debian13]=dev-opensvc-v3-trixie
[debian12]=dev-opensvc-v3-bookworm
)
function get_published_snapshot
{
local repo=$1
ssh -q repoadmv2 "aptly publish list -json | jq -r '.[] | select(.Distribution == \"$repo\") | .Sources[0].Name'"
}