Skip to content

Commit 697019f

Browse files
committed
fix(cmd): fix regex in discontinued containers check
- the uefi package (collection of containers) has multiple tags, and only one was being matched until now - the same goes for the legacy coreboot container(s) - all of them have been discontinued Signed-off-by: AtomicFS <vojtech.vesely@9elements.com>
1 parent 59b36af commit 697019f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

cmd/firmware-action/container/container.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -517,8 +517,10 @@ func CleanupAfterContainer(ctx context.Context) error {
517517
func CheckIfDiscontinued(containerURL string) error {
518518
// Check for discontinued containers
519519
listDiscontinued := []string{
520-
`.*ghcr\.io\/9elements\/coreboot:4\.19.*`,
521-
`.*ghcr\.io\/9elements\/uefi:edk\-stable202208.*`,
520+
`.*ghcr\.io\/9elements\/coreboot:.*`,
521+
// We no longer use this naming scheme `coreboot`, but `coreboot_x.xx` instead.
522+
`.*ghcr\.io\/9elements\/uefi:.*`,
523+
// All the old `uefi` container were made by hand back in the day. They are all discontinued now.
522524
}
523525

524526
// Patterns to use with 'containerHub'

0 commit comments

Comments
 (0)