Commit 3f651ad
committed
GHCR に残すイメージを直近 10 世代までにする
公開パッケージなので容量・転送は無料枠を消費しないが、版は放っておくと際限なく
積み上がる(`latest` を付け替えても前の版は SHA タグ付きで残る)。一覧が読めなくなり、
どれが生きているか分からなくなるのを防ぐための掃除。
**actions/delete-package-versions は使わない。** このリポジトリはマルチアーキで、
1 つのタグが manifest list + アーキごとの子イメージで構成される。あちらは子イメージを
「タグ無しの版」として消すため、残したはずのタグが壊れる(既知の不具合)。
dataaxiom/ghcr-cleanup-action は manifest list を理解して親子まとめて扱う。
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>1 parent 070e1db commit 3f651ad
1 file changed
Lines changed: 28 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
0 commit comments