Skip to content

Commit cbb05aa

Browse files
committed
fix: add s3 check in tag retrieval
1 parent 4137114 commit cbb05aa

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

internal/sync/images.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ func SyncImage(ctx context.Context, image *structs.Image) error {
146146
var dstTags []string
147147

148148
for _, dst := range image.Targets {
149-
if strings.HasPrefix(dst, "r2:") {
149+
if strings.HasPrefix(dst, "r2:") || strings.HasPrefix(dst, "s3:") {
150150
// Comparison is performed during push
151151
continue
152152
}

internal/sync/s3.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ func pushS3WithSession(ctx context.Context, s3Session *s3.S3, bucket *string, im
8686
if err == nil {
8787
cnfHash, err := i.ConfigName()
8888
if err == nil {
89-
9089
if err := syncObject(
9190
ctx,
9291
s3Session,

0 commit comments

Comments
 (0)