mirror of
https://github.com/rocky-linux/sig-cloud-instance-images.git
synced 2024-12-18 15:18:35 +00:00
devel update
This commit is contained in:
parent
0064de53bf
commit
8d5a54d156
@ -39,10 +39,6 @@ case "$type" in
|
||||
;;
|
||||
esac
|
||||
|
||||
|
||||
|
||||
pattern=$(printf "Rocky-%s.%s-%s-%s" "$version" "$date" "$type" "$arch")
|
||||
|
||||
has-branch(){
|
||||
local res=$(log-cmd git branch --list "$1")
|
||||
if [[ -z $res ]]; then
|
||||
@ -90,6 +86,20 @@ latest-build() {
|
||||
return 0
|
||||
}
|
||||
|
||||
build-container-manifests() {
|
||||
local destinations=("docker.io/rockylinux/rockylinux" "quay.io/rockylinux/rockylinux")
|
||||
local tags=("$version" "${version}.${date}")
|
||||
local final_tags=""
|
||||
for d in "${destinations[@]}"; do
|
||||
for t in "${tags[@]}"; do
|
||||
final_tags="$(printf '%s,%s:%s' $d $t)"
|
||||
done
|
||||
done
|
||||
echo $final_tags
|
||||
}
|
||||
|
||||
pattern=$(printf "Rocky-%s.%s-%s-%s" "$version" "$date" "$type" "$arch")
|
||||
|
||||
if has-branch $pattern; then
|
||||
usage "Branch ${pattern} already exists. Exiting."
|
||||
exit 1
|
||||
@ -118,3 +128,5 @@ log-cmd aws --region us-east-2 --profile resf-peridot-prod s3 sync "s3://resf-em
|
||||
|
||||
generate-packagelist
|
||||
generate-filelist
|
||||
|
||||
build-container-manifests
|
||||
|
Loading…
Reference in New Issue
Block a user