Closed cmoulliard closed 1 year ago
The problem is that currently no extender phase is part of the Tekton Buildpack task
@cmoulliard seems like you have figured it out :)
seems like you have figured it out :)
Yes. I'm working on a PR to add the extender phase to the Tekton Task
Issue
During the execution of the following bash script able to install a Tekton builldpack pipelineRun for a node.js project, the step
build
reports such an errorDetect phase seemed to worked well ...
Question: How is the following step running locally using pack
===> EXTENDING (BUILD)
takes place using tekton task and buildpack phases ?How to reproduce
Execute this bash script on a kubernetes kind cluster and change the:
"auth": "Y2gwMDdt...
)IMAGE_NAME=quay.io/ch007m/nodejs-pack-test
echo "### Installing Tekton and Dashboard" kubectl apply -f https://github.com/tektoncd/pipeline/releases/download/v0.48.0/release.yaml kubectl apply -f https://storage.googleapis.com/tekton-releases/dashboard/latest/release.yaml
VM_IP=127.0.0.1 kubectl create ingress tekton-ui -n tekton-pipelines --class=nginx --rule="tekton-ui.$VM_IP.nip.io/*=tekton-dashboard:9097"
kubectl apply -f https://raw.githubusercontent.com/tektoncd/catalog/main/task/git-clone/0.9/git-clone.yaml kubectl apply -f https://raw.githubusercontent.com/redhat-buildpacks/testing/ed213e2473a13e1c01c397a3e2857091dd557018/k8s/tekton/buildpacks-phases.yml
echo "##### Testing lifecycle with: " cat < auths.json
{
"auths": {
"quay.io": {
"auth": "Y2gwMDdt....NjJPMg==",
}
}
}
EOF
kubectl delete secret/dockercfg kubectl create secret generic dockercfg --from-file=.dockerconfigjson=auths.json --type=kubernetes.io/dockerconfigjson
kubectl delete PipelineRun/buildpacks-phases kubectl delete pvc/ws-pvc kubectl delete sa/sa-with-secrets
cat <<EOF | kubectl apply -f -
apiVersion: v1 imagePullSecrets:
name: dockercfg
apiVersion: v1 kind: PersistentVolumeClaim metadata: name: ws-pvc spec: accessModes:
ReadWriteOnce resources: requests: storage: 500Mi
apiVersion: tekton.dev/v1beta1 kind: PipelineRun metadata: name: buildpacks-phases labels: app.kubernetes.io/description: "Buildpacks-PipelineRun" spec: serviceAccountName: sa-with-secrets pipelineSpec: workspaces:
tkn pipelinerun logs buildpacks-phases -f