From 2de485e1ed3f895d0a3e29bc7dbe0cba637103a7 Mon Sep 17 00:00:00 2001 From: avraham Date: Mon, 21 Aug 2023 08:30:58 -0400 Subject: [PATCH] fix minio copy command --- tekton/pipeline.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tekton/pipeline.yaml b/tekton/pipeline.yaml index 685085c..baf7461 100644 --- a/tekton/pipeline.yaml +++ b/tekton/pipeline.yaml @@ -32,7 +32,11 @@ spec: steps: - name: git-clone image: bitnami/git - script: git clone $(params.gitrepositoryurl) $(workspaces.repo.path) && cd $(workspaces.repo.path) && git checkout $(params.gitrevision) + workingDir: $(workspaces.repo.path) + script: | + #!/bin/sh + git fetch --all --tags + git checkout $(params.gitrevision) - name: npm-build runAfter: - git-clone @@ -73,4 +77,4 @@ spec: secretKeyRef: name: minio-dev key: secretKey - script: mc cp dist/ sakal-us/ \ No newline at end of file + script: mc cp --recursive dist/ sakal-us/ \ No newline at end of file