Azure / Azure/acr-cli

--recent flag for annotate

Open
#399 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Go
Stars
70
Forks
52
Avg merge
3d 2h
Merged PRs (30d)
12

Description

**What is the problem you're trying to solve**

Wondering if you folks are open to a contribution which adds the `--recent` flag to `annotate`.
Annotate images that were pushed to the ACR within the last 24hrs.

Was thinking of using `--ago` naming for the flag here as well, but that runs counter to the purge command where all images > 1d are purged.

Our usecase is as follows:

We'd like to annotate all images pushed to our acr with a cron job.
I'm aware the book method of annotating images at push time is not a cron, but a ACR webhooks + serverless functions.
It's really heavy on infra & management overhead, which is why we'd rather go with a cron job.

We currently do this manually using oras & az cli, but would rather have 1 tool to do the annotation.

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Additional context**
Add any other context or screenshots about the feature request here.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.