added kaniko example
authorErik Brakkee <erik@brakkee.org>
Sat, 1 Oct 2022 19:00:32 +0000 (21:00 +0200)
committerErik Brakkee <erik@brakkee.org>
Sat, 1 Oct 2022 19:00:32 +0000 (21:00 +0200)
Jenkinsfile

index 2a9a0c079834fd9e696544779f434259aa9ac61c..ca86a8c13667f3dee3d9900a99c47f8664e808e1 100644 (file)
@@ -25,6 +25,11 @@ pipeline {
         container('kaniko') { 
           sh """
             echo 'Hello world' 
+            echo /kaniko/executor --dockerfile Dockerfile \
+                             --cache=true \
+                             --cache-ttl=100000h \
+                             --context \$(  pwd ) \
+                             --destination depot.wamblee.org/rockyrocks:${env.BRANCH_NAME}
           """
         }
       }