cloud-native-toolkit / deployer-tekton-tasks

this is a library of Tekton tasks that are used in IBM TechZone deployer to accelerate the writing of Tekton pipelines.
MIT License
5 stars 4 forks source link

git is not available in the image used by task ibm-pak. #3

Open gomezrjo opened 7 months ago

gomezrjo commented 7 months ago

Add git to the image used by tas ibm-pak.

As part of the work done around CP4I, in order to be able to deploy Configurations used by App Connect Integration runtimes it is required to clone the repo that includes the source code of the integrations, but when trying to use the git command I got the following error:

/tekton/scripts/script-0-xkwf7: line 12: git: command not found

As a reference, this is the script I used in my task:

            echo "Entering test script."
            cd workspace
            git clone https://github.ibm.com/joel-gomez/cp4i-ace-artifacts.git
            echo "Test has been completed."
rampadc commented 7 months ago

Hey @gomezrjo, can you have a look at using ibm-pak-0.3 task? It now includes git, unzip, zip and I updated the ibm-pak CLI to v1.14.0 as well. Your cluster should automatically pull the new task down into the default namespace. If it's not there, you can import this YAML in directly https://github.com/cloud-native-toolkit/deployer-tekton-tasks/blob/main/tasks/ibm-pak/0.3/ibm-pak.yaml