Existing image with tag 'latest' does not get updated in JFrog artifactory

77 views
Skip to first unread message

Frank Gierschner

unread,
Sep 12, 2023, 12:20:42 PM9/12/23
to kaniko-users
Hi all,

we are using kaniko for building and uploading images to JFrog artifactory via a command like
```
/kaniko/executor --context dir:///my-workspace-dir --build-arg 'IMAGE_BUILDER_TYPE=kaniko' --cleanup --dockerfile /Path/To/Dockerfile --build-arg 'BUILD_VERSION=1.2.3' --build-arg 'X=some-value' ... --destination slartifartbuzz.mycompany.com/artifactory-target-repo:1.2.3 --destination slartifartbuzz.mycompany.com/artifactory-target-repo:latest
```
but at some point in the past we noticed that the image with the image with tag 'latest' does not get replaced anymore and stays an old one. 

This all happens without any errors occurring during kaniko execution:
```
Deleting filesystem...                      
Pushing image to slartifartbuzz.mycompany.com/artifactory-target-repo:1.2.3
Pushed slartifartbuzz.mycompany.com/artifactory-target-repo@sha256:<digest>
Pushing image to slartifartbuzz.mycompany.com/artifactory-target-repo:latest
Pushed slartifartbuzz.mycompany.com/artifactory-target-repo@sha256:<digest>
errorHandler exitCode=0
```
We do not see any "force" option which may be placed on the CLI to overcome this.
Is it an intended behaviour? Or any ideas how to resolve this?

Regards
 Frank
Reply all
Reply to author
Forward
0 new messages