Skip to content

Commit 8bfaede

Browse files
authored
Merge pull request #498 from SamYuan1990/CIfixUp
[CI] nit fix for CI issue
2 parents fc86bf2 + 4ffb58b commit 8bfaede

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/train-model.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ env:
6363
AWS_ACCESS_KEY_ID: ${{ secrets.aws_access_key_id }}
6464
AWS_SECRET_ACCESS_KEY: ${{ secrets.aws_secret_access_key }}
6565
KIND_CLUSTER_NAME: kind
66-
KUBECONFIG: /tmp/kubeconfig
6766

6867
jobs:
6968
check-data:
@@ -126,10 +125,12 @@ jobs:
126125
- name: Prepare PVC
127126
working-directory: model_training/tekton
128127
run: |
128+
export KUBECONFIG_ROOT_DIR=/tmp/kubeconfig
129129
kubectl apply -f pvc/hostpath.yaml
130130
131131
- name: Deploy S3 Secret
132132
run: |
133+
export KUBECONFIG_ROOT_DIR=/tmp/kubeconfig
133134
cat <<EOF | kubectl apply -f -
134135
apiVersion: v1
135136
kind: Secret
@@ -146,12 +147,14 @@ jobs:
146147
- name: Deploy Tasks and Pipelines
147148
working-directory: model_training/tekton
148149
run: |
150+
export KUBECONFIG_ROOT_DIR=/tmp/kubeconfig
149151
kubectl apply -f tasks
150152
kubectl apply -f tasks/s3
151153
kubectl apply -f pipelines
152154
153155
- name: Run Tekton Pipeline with S3Push
154156
run: |
157+
export KUBECONFIG_ROOT_DIR=/tmp/kubeconfig
155158
cat <<EOF | kubectl apply -f -
156159
apiVersion: tekton.dev/v1
157160
kind: PipelineRun
@@ -188,4 +191,5 @@ jobs:
188191
189192
- name: Wait for PipelineRun
190193
run: |
194+
export KUBECONFIG_ROOT_DIR=/tmp/kubeconfig
191195
./hack/k8s_helper.sh wait_for_pipelinerun self-hosted-aws-train

0 commit comments

Comments
 (0)