Closed csantanapr closed 5 years ago
The java test tasks should look like this, and we can remove a lot of things we don't need
apiVersion: tekton.dev/v1alpha1
kind: Task
metadata:
name: java-spring-boot2-test-task
spec:
inputs:
resources:
- name: git-source
type: git
steps:
- name: test
image: kabanero/java-spring-boot2:0.3
workingdir: ${inputs.resources.git-source.path}
command: ["/bin/bash", "-c", "$APPSODY_TEST"]
reviewed the nodejs also and I think it should look like this
apiVersion: tekton.dev/v1alpha1
kind: Task
metadata:
name: csantana-nodejs-express-build-task
spec:
inputs:
resources:
- name: git-source
type: git
steps:
- name: npm-test
image: kabanero/nodejs-express:0.2
workingDir: /project
command:
[
"/bin/bash",
"-c",
"cp -a ${inputs.resources.git-source.path}/* $APPSODY_WATCH_DIR && $APPSODY_INSTALL && echo $APPSODY_TEST >/tmp/test.sh && source /tmp/test.sh",
]
I open an issue in kabanero to discuss test tasks in collections https://github.com/kabanero-io/collections/issues/132
Updated the java workflows
sudo example