Skip to content

Commit

Permalink
add an expired track to test
Browse files Browse the repository at this point in the history
  • Loading branch information
linostar committed Sep 9, 2024
1 parent 1bfff8a commit 84edd22
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions oci/mock-rock/image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,16 @@ release:
beta: 1.0-22.04_beta

upload:
- source: "canonical/oci-factory"
commit: 7f080b50ba656538aee3819889090c173f06debd
directory: examples/mock-rock/1.0
release:
0.9-22.04:
end-of-life: "2024-05-01T00:00:00Z"
risks:
- candidate
- edge
- beta
- source: "canonical/oci-factory"
commit: 7f080b50ba656538aee3819889090c173f06debd
directory: examples/mock-rock/1.0
Expand Down
1 change: 1 addition & 0 deletions src/image/release.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@

if expired:
# remove the track since it has an expired end_of_life value
print(f"Track {track} removed because it has reached its end-of-life")
del all_releases[track]

print(
Expand Down

0 comments on commit 84edd22

Please sign in to comment.