Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CI] nit fix for CI issue #498

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .github/workflows/train-model.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ env:
AWS_ACCESS_KEY_ID: ${{ secrets.aws_access_key_id }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.aws_secret_access_key }}
KIND_CLUSTER_NAME: kind
KUBECONFIG: /tmp/kubeconfig

jobs:
check-data:
Expand Down Expand Up @@ -126,10 +125,12 @@ jobs:
- name: Prepare PVC
working-directory: model_training/tekton
run: |
export KUBECONFIG_ROOT_DIR=/tmp/kubeconfig
kubectl apply -f pvc/hostpath.yaml

- name: Deploy S3 Secret
run: |
export KUBECONFIG_ROOT_DIR=/tmp/kubeconfig
cat <<EOF | kubectl apply -f -
apiVersion: v1
kind: Secret
Expand All @@ -146,12 +147,14 @@ jobs:
- name: Deploy Tasks and Pipelines
working-directory: model_training/tekton
run: |
export KUBECONFIG_ROOT_DIR=/tmp/kubeconfig
kubectl apply -f tasks
kubectl apply -f tasks/s3
kubectl apply -f pipelines

- name: Run Tekton Pipeline with S3Push
run: |
export KUBECONFIG_ROOT_DIR=/tmp/kubeconfig
cat <<EOF | kubectl apply -f -
apiVersion: tekton.dev/v1
kind: PipelineRun
Expand Down Expand Up @@ -188,4 +191,5 @@ jobs:

- name: Wait for PipelineRun
run: |
export KUBECONFIG_ROOT_DIR=/tmp/kubeconfig
./hack/k8s_helper.sh wait_for_pipelinerun self-hosted-aws-train
Loading