reinstate regular pipeline

main
avraham 2 years ago
parent b5ab6edd34
commit 9de07b99ba

@ -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/
mc cp --recursive ./dist/ minio/sakal-us/
Loading…
Cancel
Save