I pushed newer plugin image with tag latest
, but drone not pull the latest image
kind: pipeline
name: default
steps:
- name: docker
image: cr.private.com/drone/kaniko
pull: true
settings:
registry: cr.private.com
repo: base/base
username:
from_secret: username
password:
from_secret: password
auto_tag: true
my drone version is 1.3.1, and runing on kubernetes
kubernets log
Container image "cr.private.com/drone/kaniko:latest" already present on machine
how to force pull latest image?
the pod create by drone-controller all have ifNotPresent
policy, how to change it?
# kubectl -n `kubectl get ns |grep -vE 'd$|NAME' |awk '{print $1}'` get pod -o yaml |grep "imagePullPolicy"
imagePullPolicy: IfNotPresent
imagePullPolicy: IfNotPresent
The pull
attribute is an enumeration, not a boolean. It can be set to always
, never
or if-not-exists
Thanks, set pull: always
works.
But I think if an image without tag or with tag latest
, the pull policy should set to always
automatically
annProg
6