|
|
@ -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
|
|
|
@ -66,7 +66,8 @@ spec:
|
|
|
|
workingDir: $(workspaces.repo.path)
|
|
|
|
workingDir: $(workspaces.repo.path)
|
|
|
|
env:
|
|
|
|
env:
|
|
|
|
- name: MINIO_SERVER_HOST
|
|
|
|
- name: MINIO_SERVER_HOST
|
|
|
|
value: minio.minio-dev.svc.cluster.local
|
|
|
|
#value: minio.minio-dev.svc.cluster.local
|
|
|
|
|
|
|
|
value: "10.42.0.23"
|
|
|
|
- name: MINIO_SERVER_ACCESS_KEY
|
|
|
|
- name: MINIO_SERVER_ACCESS_KEY
|
|
|
|
valueFrom:
|
|
|
|
valueFrom:
|
|
|
|
secretKeyRef:
|
|
|
|
secretKeyRef:
|
|
|
@ -77,4 +78,7 @@ spec:
|
|
|
|
secretKeyRef:
|
|
|
|
secretKeyRef:
|
|
|
|
name: minio-dev
|
|
|
|
name: minio-dev
|
|
|
|
key: secretKey
|
|
|
|
key: secretKey
|
|
|
|
script: mc alias list && mc cp --recursive ./dist/ minio/sakal-us/
|
|
|
|
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/
|