Skip to content

Commit

Permalink
mock-rock: remove 1.0.0 tag and change 1.0 EOL to an expired one
Browse files Browse the repository at this point in the history
  • Loading branch information
linostar committed Nov 15, 2024
1 parent d3d856f commit 16f3fae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
8 changes: 1 addition & 7 deletions oci/mock-rock/image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion src/image/release.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down

0 comments on commit 16f3fae

Please sign in to comment.