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
|
esac
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
pattern=$(printf "Rocky-%s.%s-%s-%s" "$version" "$date" "$type" "$arch")
|
|
||||||
|
|
||||||
has-branch(){
|
has-branch(){
|
||||||
local res=$(log-cmd git branch --list "$1")
|
local res=$(log-cmd git branch --list "$1")
|
||||||
if [[ -z $res ]]; then
|
if [[ -z $res ]]; then
|
||||||
@ -84,12 +80,26 @@ generate-filelist() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
latest-build() {
|
latest-build() {
|
||||||
local path=$(printf "s3://resf-empanadas/buildimage-%s-%s/Rocky-%s-Container-%s-%s-%s.%s.%s" $version $arch $major $type $version $date $revision $arch)
|
local path=$(printf "s3://resf-empanadas/buildimage-%s-%s/Rocky-%s-Container-%s-%s-%s.%s.%s" $version $arch $major $type $version $date $revision $arch)
|
||||||
local res=$(log-cmd aws --region us-east-2 --profile resf-peridot-prod s3 ls --recursive "$path" | sort | tail -1 | awk '{print $4}' | sed 's,^\(.*\)/.*$,\1,g')
|
local res=$(log-cmd aws --region us-east-2 --profile resf-peridot-prod s3 ls --recursive "$path" | sort | tail -1 | awk '{print $4}' | sed 's,^\(.*\)/.*$,\1,g')
|
||||||
echo "$res"
|
echo "$res"
|
||||||
return 0
|
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
|
if has-branch $pattern; then
|
||||||
usage "Branch ${pattern} already exists. Exiting."
|
usage "Branch ${pattern} already exists. Exiting."
|
||||||
exit 1
|
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-packagelist
|
||||||
generate-filelist
|
generate-filelist
|
||||||
|
|
||||||
|
build-container-manifests
|
||||||
|
Loading…
Reference in New Issue
Block a user