Log Output
23 |
24 | Paste the log output here.
25 |
26 |
27 |
28 | **Expected behavior**
29 | A clear and concise description of what you expected to happen.
30 |
31 | **Deployment information**
32 | Describe what you've deployed and how:
33 | - CLAIMED version: [e.g. 1.5.3]
34 | - Installation source: [e.g. git, dockerhub]
35 | - Runtime type: [e.g. ipython, docker, kubernetes, knative, kubeflow ]
36 |
--------------------------------------------------------------------------------
/.github/build_operators.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | # This script creates operators for all operator files in the last commit and pushes the images to a registry.
3 | # The KFP component yaml and Kubernetes job yaml files are added to git and pushed to branch main.
4 | # TODO: claimed-c3 v0.2.5 is using the default version 0.1 and cannot auto-increase the version.
5 |
6 | echo 'Running build_operators.sh'
7 |
8 | git checkout main
9 | # Get commit ids
10 | log_file=".github/build_operators_commits.txt"
11 | last_commit=$(sed -n '$p' $log_file)
12 | echo "Last commit: "$last_commit
13 | current_commit=$(git rev-parse --short main)
14 | echo "Current commit: "$current_commit
15 | # Get list of changed files from last build
16 | file_list=$(git diff --name-only $last_commit $current_commit)
17 | echo 'File list: '$file_list
18 | # Add current commit id to log
19 | echo "$current_commit" >> "$log_file"
20 | git add $log_file
21 |
22 | # Get default repository from env
23 | default_repository=${repository:-docker.io/romeokienzler}
24 | echo 'default repository: '$default_repository
25 | default_log_level=${log_level:-INFO}
26 | echo 'default log_level: '$default_log_level
27 | image_list=''
28 |
29 | for file in $file_list
30 | do
31 | # Check if the file is in the directory operators and ends with .py or .ipynb
32 | if [[ $file =~ ^operators/.*\.(py|ipynb)$ ]]; then
33 | echo "Processing file "$file
34 |
35 | if ! [ -f $file ]; then
36 | # File not found in main
37 | echo "File not found."
38 | continue
39 | fi
40 |
41 | dir=$(dirname "$file")
42 | bname="$(basename ${file})"
43 |
44 | # Reset variables
45 | gridwrapper=false
46 | cos=false
47 | process=false
48 | repository=False
49 | version=false
50 | additional_files=false
51 | log_level=false
52 | dockerfile_template_path=false
53 | image=''
54 |
55 | # Reading settings from optional cfg file
56 | config_file=${file%.*}.cfg
57 | if [ -f $config_file ]; then
58 | while read LINE; do declare "$LINE"; done < $config_file
59 | else
60 | # Missing cfg file
61 | echo "Config file not found, skipping file. Please add