mirror of
https://github.com/armbian/build.git
synced 2025-09-11 16:51:18 +02:00
> tl-dr: only deploys to remote OCI if `UPLOAD_TO_OCI_ONLY=yes`; stop leaving junk behind in local cache in many situations - simplify CLI artifact building parameters and behaviour - `ARTIFACT_USE_CACHE` is now deprecated, and its behaviour is the default - for _any_ uploading to OCI to occur, `UPLOAD_TO_OCI_ONLY=yes` **must** be present; in this case, reversioning is not done - `FORCE_ARTIFACTS_DOWNLOAD` is completely removed (use `download-artifact` instead) - `cli_obtain_complete_artifact()`'s and `build_artifact_for_image()`'s reversioning is now moved to common `obtain_complete_artifact()` - `standard_artifact_reversion_for_deployment()`: - check for hashed deb existence only if reversioned does not exist - touch the reversioned file if it already exists; helps to clean up junk later - delete hashed version after reversioning, so we don't leave trash behind - unless in `download-artifact` mode, which `touch`es the hashed version - we can later delete old files from packages-hashed to keep junk under control - refactor `obtain_complete_artifact()` - extract function `artifact_dump_json_info()` since obtain is large enough already - when deploying to remote, always ignore all local and remote caches - introduce `artifact_is_available_in_revisioned_local_cache()` - if not deploying to remote, and revisioned cache exists, use it directly - if deploying to remote, reversioned is not checked and not created - if deploying to remote, force `DEB_COMPRESS=xz` - if deploying to remote, completely remove the local cache base dir after upload is done (no more junk leftover)