2 Commits
0.7 ... 0.7.1

Author SHA1 Message Date
Roman Vynar
2a0159b73e Fix panic when using MySQL for events storage and no table created yet 2018-07-18 18:16:37 +03:00
Roman Vynar
b563c6d1a1 Add note about deleting tags. 2018-07-10 16:55:50 +03:00
3 changed files with 14 additions and 2 deletions

View File

@@ -1,8 +1,12 @@
## Changelog ## Changelog
### 0.7.1 (2018-07-18)
* Fix panic when using MySQL for events storage and no table created yet.
### 0.7 (2018-07-04) ### 0.7 (2018-07-04)
* When using MySQL for event storage, do not leak connections. * When using MySQL for events storage, do not leak connections.
* Last events were not shown when viewing a repo of non-default namespace. * Last events were not shown when viewing a repo of non-default namespace.
* Support repos with slash in the name. * Support repos with slash in the name.
* Enable Sonatype Nexus compatibility. * Enable Sonatype Nexus compatibility.

View File

@@ -77,6 +77,12 @@ You can create a table manually if you don't want to grant `CREATE` permission:
### Schedule a cron task for purging tags ### Schedule a cron task for purging tags
To delete tags you need to enable the corresponding option in Docker Registry config. For example:
storage:
delete:
enabled: true
The following example shows how to run a cron task to purge tags older than X days but also keep The following example shows how to run a cron task to purge tags older than X days but also keep
at least Y tags no matter how old. Assuming container has been already running. at least Y tags no matter how old. Assuming container has been already running.

View File

@@ -175,8 +175,10 @@ func (e *EventListener) getDababaseHandler() (*sql.DB, error) {
if err != nil { if err != nil {
firstRun = true firstRun = true
} }
if rows != nil {
rows.Close() rows.Close()
} }
}
// Create table on first run. // Create table on first run.
if firstRun { if firstRun {