Skip to content

Commit

Permalink
Add code to calculate time taken to pull a docker image
Browse files Browse the repository at this point in the history
Signed-off-by: hansinikarunarathne <[email protected]>
  • Loading branch information
hansinikarunarathne committed Aug 14, 2024
1 parent 4f8b6b3 commit 85e3a35
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/pipeline_run_from_notebook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,15 @@ jobs:
- name: Apply PodDefaults to access ml-pipeline with projected token
run: kubectl apply -f tests/gh-actions/kf-objects/poddefaults.access-ml-pipeline.kubeflow-user-example-com.yaml

- name: Measure time to pull Docker image
run: |
start_time=$(date +%s)
kubectl apply -f tests/gh-actions/kf-objects/notebook.test.kubeflow-user-example.com.yaml
end_time=$(date +%s)
image_pull_time=$((end_time - start_time))
echo "Image pull and deployment took $image_pull_time seconds."
shell: bash
- name: Create Kubeflow Notebook with PodDefaults
run: |
kubectl apply -f tests/gh-actions/kf-objects/notebook.test.kubeflow-user-example.com.yaml
Expand Down

0 comments on commit 85e3a35

Please sign in to comment.