Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attach lifecycle annotations for images #852

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

anamnavi
Copy link
Member

@anamnavi anamnavi commented Mar 10, 2025

PR Summary

Attach lifecycle annotation for images with (rolling) tags. Check if the tag already exists for an image, if so fetch that image by digest and import it into our ACR instance, attach lifecycle annotation to mark it as EOL, and then publish the new one.

PR Checklist

@anamnavi anamnavi requested a review from TravisEz13 as a code owner March 10, 2025 16:08

Write-Verbose -Verbose "Getting image info"
$imgJsonFileContent = Get-Content -Path $pathToImgMetadataJson | ConvertFrom-Json
$images = $imgJsonFileContent.$channel

# Create variables for lifecycle annotations
$endOfLifeDate = Get-Date -Format "yyyy-MM-ddTHH:mm:00Z"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't this be 30days from now?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants