You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openserverless.apache.org by ms...@apache.org on 2024/07/13 12:19:24 UTC

(openserverless-operator) 07/25: 0.1-dev.2407121123

This is an automated email from the ASF dual-hosted git repository.

msciabarra pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/openserverless-operator.git

commit 78bc7984efa20218e3d03e98399db1407444b0af
Author: Michele Sciabarra <ms...@apache.org>
AuthorDate: Fri Jul 12 11:28:23 2024 +0200

    0.1-dev.2407121123
---
 kaniko-build.yaml | 21 ++++++++++++---------
 1 file changed, 12 insertions(+), 9 deletions(-)

diff --git a/kaniko-build.yaml b/kaniko-build.yaml
index e753ed2..36993d8 100644
--- a/kaniko-build.yaml
+++ b/kaniko-build.yaml
@@ -1,14 +1,17 @@
 apiVersion: v1
-kind: Pod
+kind: Job
 metadata:
   name: kaniko-build
   namespace: default
 spec:
-  containers:
-  - name: kaniko
-    image: gcr.io/kaniko-project/executor:latest
-    args: 
-      - --context=git://github.com/${GITHUB_USER}/openserverless-operator
-      - --destination=docker-registry:5000/openserverless/operator:${TAG}
-      - --insecure
-      - --insecure-registry=docker-registry
+  template:
+    spec:
+      containers:
+      - name: kaniko
+        image: gcr.io/kaniko-project/executor:latest
+        args: 
+          - --context=git://github.com/${GITHUB_USER}/openserverless-operator
+          - --destination=docker-registry:5000/openserverless/operator:${TAG}
+          - --insecure
+          - --insecure-registry=docker-registry
+      restartPolicy: Never
\ No newline at end of file