mirror of
https://github.com/rocky-linux/sig-cloud-instance-images.git
synced 2024-12-18 15:18:35 +00:00
fixes for generation script
This commit is contained in:
parent
ef2f938228
commit
b67e667462
@ -9,8 +9,8 @@ major=${1:0:1}
|
|||||||
minor=${1:2:1}
|
minor=${1:2:1}
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
printf "%s: RELEASE TYPE [DATE]\n\n" $0
|
printf "%s: RELEASE TYPE [DATE]\n\n" $0
|
||||||
log "$1"
|
log "$1"
|
||||||
}
|
}
|
||||||
|
|
||||||
# shellcheck disable=SC2046,1091,1090
|
# shellcheck disable=SC2046,1091,1090
|
||||||
@ -21,27 +21,29 @@ name="Rocky-${version}.${date}-${type}"
|
|||||||
arches=(x86_64 aarch64)
|
arches=(x86_64 aarch64)
|
||||||
set -x
|
set -x
|
||||||
if [[ $major -ge 9 ]]; then
|
if [[ $major -ge 9 ]]; then
|
||||||
arches=(${arches[@]} s390x ppc64le)
|
arches=(${arches[@]} s390x ppc64le)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
case $type in
|
case $type in
|
||||||
UBI|Minimal)
|
UBI | Minimal)
|
||||||
suffix="-${type,,}" ;;
|
suffix="-${type,,}"
|
||||||
*)
|
;;
|
||||||
suffix='';;
|
*)
|
||||||
|
suffix=''
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
declare -A shasums
|
declare -A shasums
|
||||||
|
|
||||||
for a in "${arches[@]}"; do
|
for a in "${arches[@]}"; do
|
||||||
pt="${name}-${a}"
|
pt="${name}-${a}"
|
||||||
if has-branch $pt; then
|
if has-branch $pt; then
|
||||||
shasums[$a]="$(git rev-parse $pt)"
|
shasums[$a]="$(git rev-parse $pt)"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
cat <<EOF
|
cat <<EOF
|
||||||
Tags: ${version}.${date}${suffix}, ${major}${suffix}, ${version}${suffix}
|
Tags: ${version}.${date}${suffix}, ${version}${suffix}, ${major}${suffix}
|
||||||
GitFetch: refs/heads/${name}-x86_64
|
GitFetch: refs/heads/${name}-x86_64
|
||||||
GitCommit: ${shasums[x86_64]}
|
GitCommit: ${shasums[x86_64]}
|
||||||
arm64v8-GitFetch: refs/heads/${name}-aarch64
|
arm64v8-GitFetch: refs/heads/${name}-aarch64
|
||||||
@ -52,4 +54,3 @@ ppc64le-GitFetch: refs/heads/${name}-ppc64le
|
|||||||
ppc64le-GitCommit: ${shasums[ppc64le]}
|
ppc64le-GitCommit: ${shasums[ppc64le]}
|
||||||
Architectures: amd64, arm64v8, ppc64le, s390x
|
Architectures: amd64, arm64v8, ppc64le, s390x
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user