Package up the logs and the raw image too
This commit is contained in:
parent
0bfa3ff963
commit
cdf0a1f24a
@ -145,9 +145,14 @@ def uploadToS3(source, destination):
|
||||
|
||||
|
||||
def packageUpload(target):
|
||||
package = f"fedora-{RELEASE}-{target['id']}-{TODAY}.zip"
|
||||
base = f"fedora-{RELEASE}-{target['id']}-{TODAY}"
|
||||
package = f"{base}.zip"
|
||||
logs_package = f"{base}-logs.zip"
|
||||
image = f"{base}.raw.zstd"
|
||||
|
||||
uploadToS3(package, f"os/{package}")
|
||||
uploadToS3(logs_package, f"os/{logs_package}")
|
||||
uploadToS3(image, f"os/{image}")
|
||||
|
||||
|
||||
def getManifest():
|
||||
|
@ -105,3 +105,18 @@ cat > installer_data.json <<EOF
|
||||
]
|
||||
}
|
||||
EOF
|
||||
|
||||
# Package up the logs
|
||||
mkdir -p "${workdir}/logs"
|
||||
cp -p \
|
||||
outdir/build/image-root.log \
|
||||
outdir/Fedora-Asahi-Remix.aarch64-0.0.0.changes \
|
||||
outdir/Fedora-Asahi-Remix.aarch64-0.0.0.packages \
|
||||
outdir/kiwi.result.json \
|
||||
"${workdir}/logs/"
|
||||
pushd "${workdir}/logs" > /dev/null
|
||||
7z a -tzip -r "${basedir}/${package}-logs" .
|
||||
popd > /dev/null
|
||||
|
||||
# Package up the raw image
|
||||
zstd -c9 < "${image}" > "${basedir}/${package}.raw.zst"
|
||||
|
Loading…
Reference in New Issue
Block a user