artifacts (all): require prefixing of artifact_version with artifact_prefix_version (which is ${REVISION}--)

This commit is contained in:
Ricardo Pardini
2023-03-13 00:10:01 -03:00
committed by Igor Pečovnik
parent 4a1eec83e7
commit ff657fcf90
8 changed files with 25 additions and 7 deletions

View File

@@ -10,6 +10,7 @@
function artifact_rootfs_prepare_version() {
artifact_version="undetermined" # outer scope
artifact_version_reason="undetermined" # outer scope
[[ -z "${artifact_prefix_version}" ]] && exit_with_error "artifact_prefix_version is not set"
assert_requires_aggregation # Bombs if aggregation has not run
@@ -30,7 +31,7 @@ function artifact_rootfs_prepare_version() {
# @TODO: gotta include the extensions rootfs-modifying id to cache_type...
# outer scope
artifact_version="${rootfs_cache_id}"
artifact_version="${artifact_prefix_version}${rootfs_cache_id}"
artifact_version_reason="${reasons[*]}"
artifact_name="${ARCH}-${RELEASE}-${cache_type}"
artifact_type="tar.zst"