reinstate regular pipeline
This commit is contained in:
+42
-42
@@ -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/
|
||||
Reference in New Issue
Block a user