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 8cab28eebc6f649713d4c627e3eb53269063a05f
Author: Michele Sciabarra <[email protected]>
AuthorDate: Fri Jul 12 16:23:22 2024 +0200

    fixed local registry
---
 Taskfile.yml    | 15 +++++++++++----
 registries.yaml |  2 +-
 2 files changed, 12 insertions(+), 5 deletions(-)

diff --git a/Taskfile.yml b/Taskfile.yml
index a138809..90f8cd9 100644
--- a/Taskfile.yml
+++ b/Taskfile.yml
@@ -2,7 +2,7 @@ version: 3
 vars:
  BASETAG: 0.1-dev
  TAG:
-    sh: git describe --tags --abbrev=0 2>/dev/null || echo latest
+    
 
 dotenv: 
   - .env
@@ -25,7 +25,12 @@ tasks:
     - sudo cp registries.yaml /etc/rancher/k3s/registries.yaml
     - sudo systemctl restart k3s
     - helm repo add twuni https://helm.twun.io
-    - helm install docker-registry twuni/docker-registry --namespace 
kube-system 
+    - > 
+      helm install docker-registry twuni/docker-registry 
+      --namespace kube-system  
+      --set image.tag=2.8.3
+      --set service.type=NodePort
+      --set service.nodePort=30050
     status:
     - kubectl -n kube-system get po -l app=docker-registry | grep 
docker-registry
 
@@ -39,7 +44,8 @@ tasks:
   kaniko-build:
     desc: build in current kubernetes with Kaniko
     env:
-      TAG: "{{.TAG}}"
+      TAG: 
+        sh: git describe --tags --abbrev=0 2>/dev/null || echo latest
     cmds:
     - test -n "$GITHUB_USER" || true "did you configure your .env?"
     - envsubst  <kaniko-build.yaml >_kaniko-build.yaml
@@ -63,7 +69,8 @@ tasks:
   deploy:
     desc: deploy the current operator image
     env:
-      TAG: "{{.TAG}}"
+      TAG: 
+        sh: git describe --tags --abbrev=0 2>/dev/null || echo latest
     cmds:
     - envsubst  <operator-deploy.yaml >_operator-deploy.yaml
     - kubectl apply -f _operator-deploy.yaml
diff --git a/registries.yaml b/registries.yaml
index c61a0f2..390bda0 100644
--- a/registries.yaml
+++ b/registries.yaml
@@ -1,5 +1,5 @@
 mirrors:
   ghcr.io:
     endpoint:
-      - "http://docker-registry.kube-system.svc.cluster.local:5000";
+      - "http://127.0.0.1:30050";
 

Reply via email to