|
|
@ -12,48 +12,48 @@ spec:
|
|
|
|
workspaces:
|
|
|
|
workspaces:
|
|
|
|
- name: repo
|
|
|
|
- name: repo
|
|
|
|
tasks:
|
|
|
|
tasks:
|
|
|
|
#- name: git-clone
|
|
|
|
- name: git-clone
|
|
|
|
# workspaces:
|
|
|
|
workspaces:
|
|
|
|
# - name: repo
|
|
|
|
- name: repo
|
|
|
|
# workspace: repo
|
|
|
|
workspace: repo
|
|
|
|
# params:
|
|
|
|
params:
|
|
|
|
# - name: gitrepositoryurl
|
|
|
|
- name: gitrepositoryurl
|
|
|
|
# value: "$(params.gitrepositoryurl)"
|
|
|
|
value: "$(params.gitrepositoryurl)"
|
|
|
|
# - name: gitrevision
|
|
|
|
- name: gitrevision
|
|
|
|
# value: "$(params.gitrevision)"
|
|
|
|
value: "$(params.gitrevision)"
|
|
|
|
# taskSpec:
|
|
|
|
taskSpec:
|
|
|
|
# workspaces:
|
|
|
|
workspaces:
|
|
|
|
# - name: repo
|
|
|
|
- name: repo
|
|
|
|
# params:
|
|
|
|
params:
|
|
|
|
# - name: gitrepositoryurl
|
|
|
|
- name: gitrepositoryurl
|
|
|
|
# type: string
|
|
|
|
type: string
|
|
|
|
# - name: gitrevision
|
|
|
|
- name: gitrevision
|
|
|
|
# type: string
|
|
|
|
type: string
|
|
|
|
# steps:
|
|
|
|
steps:
|
|
|
|
# - name: git-clone
|
|
|
|
- name: git-clone
|
|
|
|
# image: bitnami/git
|
|
|
|
image: bitnami/git
|
|
|
|
# workingDir: $(workspaces.repo.path)
|
|
|
|
workingDir: $(workspaces.repo.path)
|
|
|
|
# script: |
|
|
|
|
script: |
|
|
|
|
# #!/bin/sh
|
|
|
|
#!/bin/sh
|
|
|
|
# git fetch --all --tags
|
|
|
|
git fetch --all --tags
|
|
|
|
# git checkout $(params.gitrevision)
|
|
|
|
git checkout $(params.gitrevision)
|
|
|
|
#- name: npm-build
|
|
|
|
- name: npm-build
|
|
|
|
# runAfter:
|
|
|
|
runAfter:
|
|
|
|
# - git-clone
|
|
|
|
- git-clone
|
|
|
|
# workspaces:
|
|
|
|
workspaces:
|
|
|
|
# - name: repo
|
|
|
|
- name: repo
|
|
|
|
# workspace: repo
|
|
|
|
workspace: repo
|
|
|
|
# taskSpec:
|
|
|
|
taskSpec:
|
|
|
|
# workspaces:
|
|
|
|
workspaces:
|
|
|
|
# - name: repo
|
|
|
|
- name: repo
|
|
|
|
# steps:
|
|
|
|
steps:
|
|
|
|
# - name: build
|
|
|
|
- name: build
|
|
|
|
# image: node:20
|
|
|
|
image: node:20
|
|
|
|
# workingDir: $(workspaces.repo.path)
|
|
|
|
workingDir: $(workspaces.repo.path)
|
|
|
|
# script: npm install && npm run build
|
|
|
|
script: npm install && npm run build
|
|
|
|
- name: deploy-to-s3
|
|
|
|
- name: deploy-to-s3
|
|
|
|
# runAfter:
|
|
|
|
runAfter:
|
|
|
|
# - npm-build
|
|
|
|
- npm-build
|
|
|
|
workspaces:
|
|
|
|
workspaces:
|
|
|
|
- name: repo
|
|
|
|
- name: repo
|
|
|
|
workspace: repo
|
|
|
|
workspace: repo
|
|
|
@ -80,4 +80,4 @@ spec:
|
|
|
|
script: |
|
|
|
|
script: |
|
|
|
|
mc alias set minio http://${MINIO_SERVER_HOST}:9000 "${MINIO_SERVER_ACCESS_KEY}" "${MINIO_SERVER_SECRET_KEY}"
|
|
|
|
mc alias set minio http://${MINIO_SERVER_HOST}:9000 "${MINIO_SERVER_ACCESS_KEY}" "${MINIO_SERVER_SECRET_KEY}"
|
|
|
|
mc alias list
|
|
|
|
mc alias list
|
|
|
|
#mc cp --recursive ./dist/ minio/sakal-us/
|
|
|
|
mc cp --recursive ./dist/ minio/sakal-us/
|