diff --git a/oci/mock-rock/image.yaml b/oci/mock-rock/image.yaml index 362b45b0..72382b32 100644 --- a/oci/mock-rock/image.yaml +++ b/oci/mock-rock/image.yaml @@ -13,14 +13,8 @@ upload: commit: 17916dd5de270e61a6a3fd3f4661a6413a50fd6f directory: mock_rock/1.0 release: - 1.0.0-22.04: - end-of-life: "2024-05-01T00:00:00Z" - risks: - - candidate - - edge - - beta 1.0-22.04: - end-of-life: "2030-05-01T00:00:00Z" + end-of-life: "2024-05-01T00:00:00Z" risks: - candidate - edge diff --git a/src/image/release.py b/src/image/release.py index e7bb8fe3..9c18b5fb 100755 --- a/src/image/release.py +++ b/src/image/release.py @@ -98,7 +98,8 @@ for upload in image_trigger["upload"] or []: for track, upload_release_dict in (upload["release"] or {}).items(): if track not in all_releases: - continue + print(f"Track {track} will be created for the 1st time") + all_releases[track] = {} if upload_release_dict and upload_release_dict.get("end_of_life"): all_releases[track]["end-of-life"] = upload_release_dict["end_of_life"]