Allow tags to be marked as hidden. Create a hidden tag on every image during a push to prevent them from getting GCed.
This commit is contained in:
parent
04b06547b8
commit
41108a0856
6 changed files with 63 additions and 14 deletions
|
@ -469,6 +469,7 @@ class RepositoryTag(BaseModel):
|
|||
repository = ForeignKeyField(Repository)
|
||||
lifetime_start_ts = IntegerField(default=_get_epoch_timestamp)
|
||||
lifetime_end_ts = IntegerField(null=True, index=True)
|
||||
hidden = BooleanField(default=False)
|
||||
|
||||
class Meta:
|
||||
database = db
|
||||
|
|
Reference in a new issue