diff --git a/tekton/pipeline.yaml b/tekton/pipeline.yaml index 87f91e7..89cf7f0 100644 --- a/tekton/pipeline.yaml +++ b/tekton/pipeline.yaml @@ -12,48 +12,48 @@ spec: workspaces: - name: repo tasks: - #- name: git-clone - # workspaces: - # - name: repo - # workspace: repo - # params: - # - name: gitrepositoryurl - # value: "$(params.gitrepositoryurl)" - # - name: gitrevision - # value: "$(params.gitrevision)" - # taskSpec: - # workspaces: - # - name: repo - # params: - # - name: gitrepositoryurl - # type: string - # - name: gitrevision - # type: string - # steps: - # - name: git-clone - # image: bitnami/git - # workingDir: $(workspaces.repo.path) - # script: | - # #!/bin/sh - # git fetch --all --tags - # git checkout $(params.gitrevision) - #- name: npm-build - # runAfter: - # - git-clone - # workspaces: - # - name: repo - # workspace: repo - # taskSpec: - # workspaces: - # - name: repo - # steps: - # - name: build - # image: node:20 - # workingDir: $(workspaces.repo.path) - # script: npm install && npm run build + - name: git-clone + workspaces: + - name: repo + workspace: repo + params: + - name: gitrepositoryurl + value: "$(params.gitrepositoryurl)" + - name: gitrevision + value: "$(params.gitrevision)" + taskSpec: + workspaces: + - name: repo + params: + - name: gitrepositoryurl + type: string + - name: gitrevision + type: string + steps: + - name: git-clone + image: bitnami/git + workingDir: $(workspaces.repo.path) + script: | + #!/bin/sh + git fetch --all --tags + git checkout $(params.gitrevision) + - name: npm-build + runAfter: + - git-clone + workspaces: + - name: repo + workspace: repo + taskSpec: + workspaces: + - name: repo + steps: + - name: build + image: node:20 + workingDir: $(workspaces.repo.path) + script: npm install && npm run build - name: deploy-to-s3 - # runAfter: - # - npm-build + runAfter: + - npm-build workspaces: - name: repo workspace: repo @@ -80,4 +80,4 @@ spec: script: | mc alias set minio http://${MINIO_SERVER_HOST}:9000 "${MINIO_SERVER_ACCESS_KEY}" "${MINIO_SERVER_SECRET_KEY}" mc alias list - #mc cp --recursive ./dist/ minio/sakal-us/ \ No newline at end of file + mc cp --recursive ./dist/ minio/sakal-us/ \ No newline at end of file