Skip to content

Commit

Permalink
Add Leap Micro 6.1 publish_distro configs
Browse files Browse the repository at this point in the history
  • Loading branch information
lkocman committed Nov 15, 2024
1 parent 81e4759 commit 5e79809
Show file tree
Hide file tree
Showing 2 changed files with 109 additions and 0 deletions.
52 changes: 52 additions & 0 deletions publish_distro_conf/publish_leap-micro61.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# vim:syntax=sh

micro_version=6.1
qu="" # empty string for GA, QuarterlyUpdate repins have -N in version
logfile_base=~/publish_logs/$micro_version/$(date -d "$date" '+%Y/%m/%d/%H%M')
synclog="${logfile_base}.log"
deletelog="${logfile_base}-deletes.log"
path="/distribution/leap-micro/$micro_version/product"
flavors=(x86_64 aarch64)

# openSUSE-Leap-Micro-6.1-aarch64-Build13.1.iso is the filename by 000productcompose
get_version() {
# get expected version from first flavor
if [ -z "$version" ]; then
version=`echo $stage/iso/openSUSE-Leap-Micro-$micro_version$qu-$flavor-Build[0123456789]*.[0123456789]*.iso`
version=${version##*Build}
version=${version%-*}
if [ -z "$version" ]; then
echo "no version found, exit." | tee -a $synclog
exit 1
fi
fi
}

get_iso()
{
# openSUSE-Leap-Micro-6.1-aarch64-Build13.1.iso
iso="openSUSE-Leap-Micro-$micro_version$qu-$flavor-Build$version.iso"
}

get_iso_link()
{
link="$stage/iso/openSUSE-Leap-$micro_version$qu-$flavor-Current.iso"
}

get_diff_url()
{
url="$diff_url_base/$micro_version/diff/$version"
}

get_mark_published_url()
{
url="$diff_url_base/$micro_version/current"
}

get_changes_filename()
{
# ChangeLog files from obsgendiff are used instead
#changes="$changes_dir_base/jump/$jump_version/Changes.$version.txt"
:
# changes="$changes_dir_base/leap/$micro_version/Changes.$version.txt"
}
57 changes: 57 additions & 0 deletions publish_distro_conf/publish_leap-micro61_appliances.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# vim:syntax=sh

micro_version=6.1
logfile_base=~/publish_logs/$micro_version-appliances/$(date -d "$date" '+%Y/%m/%d/%H%M')
synclog="${logfile_base}.log"
deletelog="${logfile_base}-deletes.log"
path="/distribution/leap-micro/$micro_version/appliances"
flavors=(Default-SelfInstall)
repos=()
extra_repos=()
isodir=""

get_version() {
# get expected version from first flavor
if [ -z "$version" ]; then
version=`echo $stage/openSUSE-Leap-Micro.x86_64-$micro_version-$flavor-Build*.raw.xz`
version=${version##*Build}
version=${version%.*}
if [ -z "$version" ]; then
echo "no version found, exit." | tee -a $synclog
exit 1
fi
fi
}

_get_iso()
{
local snapshot="$1"
local suffix=xz
# echo "openSUSE-Leap-Micro-$micro_version-JeOS.x86_64-$micro_version.0-$flavor-$snapshot.$suffix"
echo "openSUSE-Leap-Micro.x86_64-$micro_version-$flavor-$snapshot.$suffix"
}

get_iso()
{
iso=`_get_iso "Build$version"`
}

get_iso_link()
{
link="$stage/`_get_iso Current`"
}

get_diff_url()
{
url=""
}

get_mark_published_url()
{
url=""
}

get_changes_filename()
{
changes=""
}

0 comments on commit 5e79809

Please sign in to comment.