From 76d2522b2b09ab5ece971052859bff7934c236d6 Mon Sep 17 00:00:00 2001 From: Mykola Marusenko Date: Fri, 6 Oct 2023 10:01:14 +0300 Subject: [PATCH] feat!: Align helm-push-lib task to dockerhub integration (#43) Change-Id: I2a36901e5821d70f613f620c209e61683c4c3afd --- .../templates/tasks/helm-libraries/helm-push-lib.yaml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/charts/pipelines-library/templates/tasks/helm-libraries/helm-push-lib.yaml b/charts/pipelines-library/templates/tasks/helm-libraries/helm-push-lib.yaml index 92ed7edf..23859b7b 100644 --- a/charts/pipelines-library/templates/tasks/helm-libraries/helm-push-lib.yaml +++ b/charts/pipelines-library/templates/tasks/helm-libraries/helm-push-lib.yaml @@ -1,4 +1,4 @@ -{{ if eq .Values.global.dockerRegistry.type "harbor"}} +{{ if eq .Values.global.dockerRegistry.type "harbor" "dockerhub"}} apiVersion: tekton.dev/v1beta1 kind: Task metadata: @@ -19,9 +19,6 @@ spec: path: config.json optional: true params: - - name: TENANT_NAME - type: string - description: "Tenant namespace" - name: IS_TAG type: string description: "Chart version" @@ -38,8 +35,6 @@ spec: env: - name: CHART_DIR value: $(params.CHART_DIR) - - name: TENANT_NAME - value: $(params.TENANT_NAME) - name: IS_TAG value: $(params.IS_TAG) - name: REGISTRY_URL @@ -53,7 +48,7 @@ spec: do if ! git diff --quiet HEAD^ HEAD -- $i; then helm package ${i} - helm push *-*.tgz oci://${REGISTRY_URL}/${TENANT_NAME} --registry-config /.config/helm/registry/config.json + helm push *-*.tgz oci://${REGISTRY_URL} --registry-config /.config/helm/registry/config.json rm *-*.tgz fi done