From 3ab3f8b3f0b8eabdec79fc5ad1c0871dbb022f66 Mon Sep 17 00:00:00 2001 From: wuhuizuo Date: Thu, 25 Apr 2024 13:04:41 +0800 Subject: [PATCH] fix(apps/prod/tekton/configs/tasks): fix task `publish-tiup-from-oci-artifact` (#1127) Signed-off-by: wuhuizuo Signed-off-by: wuhuizuo --- .../tekton/configs/tasks/publish-tiup-from-oci-artifact.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/prod/tekton/configs/tasks/publish-tiup-from-oci-artifact.yaml b/apps/prod/tekton/configs/tasks/publish-tiup-from-oci-artifact.yaml index d19208d77..3a5e9a255 100644 --- a/apps/prod/tekton/configs/tasks/publish-tiup-from-oci-artifact.yaml +++ b/apps/prod/tekton/configs/tasks/publish-tiup-from-oci-artifact.yaml @@ -37,6 +37,10 @@ spec: wget -O gen.sh "$gen_script_url" && chmod +x gen.sh ./gen.sh $(params.artifact-url) $(params.nightly) publish.sh + if [ ! -f publish.sh ]; then + exit 0 + fi + # download the artifact oras pull $(params.artifact-url)