Skip to content

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
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.

4 participants