--recent flag for annotate

Open
#399 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
38/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
azure
Domain
cli, cloud

Research direction

Start with the annotate command and compare its flag behavior with purge, especially the existing --ago convention mentioned in the issue. Review how the current oras and az cli workflow identifies images pushed within 24 hours; done means annotate can be run from a cron job to target those ACR images without the manual workflow.

Written by the indexing model from the issue text.

Description

enhancement

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.

Dominant language
Go
Stars
70
Forks
52
Avg merge
2d 12h
Merged PRs (30d)
10

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Azure/acr-cli

All issues in Azure/acr-cli

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.