Skip to content

Commit

Permalink
feat!: Align helm-push-lib task to dockerhub integration (#43)
Browse files Browse the repository at this point in the history
Change-Id: I2a36901e5821d70f613f620c209e61683c4c3afd
  • Loading branch information
MykolaMarusenko committed Oct 6, 2023
1 parent f7180c5 commit 76d2522
Showing 1 changed file with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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"
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 76d2522

Please sign in to comment.