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 07b60e823a50a74b5c2b717b27718b90c917c7e7
Author: Michele Sciabarra <[email protected]>
AuthorDate: Fri Jul 12 11:01:02 2024 +0200

    0.1-dev.2407121056
---
 Taskfile.yml                     | 10 +++++-----
 kaniko.yaml => kaniko-build.yaml | 14 +-------------
 2 files changed, 6 insertions(+), 18 deletions(-)

diff --git a/Taskfile.yml b/Taskfile.yml
index f8ab902..477f2ed 100644
--- a/Taskfile.yml
+++ b/Taskfile.yml
@@ -37,12 +37,12 @@ tasks:
       TAG: "{{.TAG}}"
     cmds:
     - test -n "$GITHUB_USER" || true "did you configure your .env?"
-    - envsubst  <kaniko.yaml >_kaniko.yaml
-    - cat _kaniko.yaml
-    - kubectl -n default delete pod/kaniko || true
-    - kubectl apply -f _kaniko.yaml
+    - envsubst  <kaniko-build.yaml >_kaniko-build.yaml
+    - kubectl -n default delete pod/kaniko-build || true
+    - kubectl apply -f _kaniko-build.yaml
 
   build:
     - task: install-registry
     - task: tag-commit-push
-    - task: kaniko-build
\ No newline at end of file
+    - task: kaniko-build
+    - kubectl -n default logs kaniko-build -f
\ No newline at end of file
diff --git a/kaniko.yaml b/kaniko-build.yaml
similarity index 59%
rename from kaniko.yaml
rename to kaniko-build.yaml
index eeac3f4..e753ed2 100644
--- a/kaniko.yaml
+++ b/kaniko-build.yaml
@@ -1,26 +1,14 @@
 apiVersion: v1
 kind: Pod
 metadata:
-  name: kaniko
+  name: kaniko-build
   namespace: default
 spec:
   containers:
   - name: kaniko
-    #image: busybox
-    #command:
-    #- sleep
-    #- inf
     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
-    volumeMounts:
-    - name: config-volume
-      mountPath: /context
-  restartPolicy: Never
-  volumes:
-  - name: config-volume
-    configMap:
-      name: dockerfile-configmap

Reply via email to