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

introduce pull policy "refresh" #745

Merged
merged 1 commit into from
Feb 25, 2025
Merged

introduce pull policy "refresh" #745

merged 1 commit into from
Feb 25, 2025

Conversation

ndeloof
Copy link
Collaborator

@ndeloof ndeloof commented Feb 21, 2025

introduce a new pull policy to refresh image based on last pulled time

pull_policy can either be set to daily or weekly or declare a delay as every_<duration>. Duration can be set in weeks, days, hours, minutes, seconds

see docker/compose#12563

types/types.go Outdated
@@ -215,6 +217,8 @@ const (
PullPolicyMissing = "missing"
// PullPolicyBuild force building images
PullPolicyBuild = "build"
// PullPolicyRefresh checks image needs to be updatedq
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
// PullPolicyRefresh checks image needs to be updatedq
// PullPolicyRefresh checks if image needs to be updated

Copy link
Collaborator

@glours glours left a comment

Choose a reason for hiding this comment

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

Sounds good to me

@ndeloof ndeloof enabled auto-merge (rebase) February 25, 2025 15:12
@ndeloof ndeloof merged commit 331db8f into main Feb 25, 2025
15 checks passed
@ndeloof ndeloof deleted the pull_refresh branch February 25, 2025 15:15
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.

3 participants