goharbor/harbor

How to exclude untagged Images from being replicated?

Open

#16,616 opened on Mar 30, 2022

View on GitHub
 (7 comments) (0 reactions) (2 assignees)Go (5,235 forks)batch import
area/replicationhelp wantedkind/questionkind/requirement

Repository metrics

Stars
 (28,490 stars)
PR merge metrics
 (Avg merge 8d 17h) (74 merged PRs in 30d)

Description

Hey,

I am fiddling around with replication rules right now.

Given this project I want to replicate:

repo1: image1:1-SNAPSHOT,latest image2: untagged image3: untagged

My replication rule looks like this (pull):

Source resource filter Name: project/** Tag: excluding {*-SNAPSHOT,*.*.*-SNAPSHOT,latest}

This exludes the first image from being replicated as I want to. But how do I exclude untagged images in a replication rule?

Thanks for any hints

Contributor guide