try hardcoding minio host
This commit is contained in:
+47
-43
@@ -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
|
||||
@@ -66,7 +66,8 @@ spec:
|
||||
workingDir: $(workspaces.repo.path)
|
||||
env:
|
||||
- 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
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
@@ -77,4 +78,7 @@ spec:
|
||||
secretKeyRef:
|
||||
name: minio-dev
|
||||
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/
|
||||
Reference in New Issue
Block a user