Step 3:

ARTIFACTORY: How to use Kaniko to build and deploy docker images through Jenkins available on a kubernetes environment

AuthorFullName__c
Prajyot Pawase
articleNumber
000005271
ft:sourceType
Salesforce
FirstPublishedDate
2022-05-17T10:44:45Z
lastModifiedDate
2024-03-10T07:43:58Z
VersionNumber
3
In the above Jenkins pipeline scripts, we have used https://github.com/scriptcamp/kubernetes-kaniko Github repo so as per the repo prerequisites we will create the below secret in the same namespace Jenkins.
kubectl create secret docker-registry saas-credentials --docker-username=$REGISTRY_USER --docker-password=$REGISTRY_PASS --docker-server=test-docker.jfrog.io --docker-email=$REGISTRY_EMAIL

After configuring this, run the Jenkins job which will build the docker images without using root docker access and push images to the Artifactory docker repository and publish to docker images build info to Artifactory.