Created
January 14, 2022 08:36
-
-
Save jandradap/b39f3a0e544110c57ecf95b12f4aa914 to your computer and use it in GitHub Desktop.
openshifr tekton check ca
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: tekton.dev/v1beta1 | |
| kind: Task | |
| metadata: | |
| name: ca-test | |
| spec: | |
| params: | |
| - description: url repo git | |
| name: URL_GIT_SSL | |
| type: string | |
| workspaces: | |
| - name: source | |
| description: Source Workspace. | |
| steps: | |
| - script: | | |
| #!/bin/bash | |
| echo "************************************" | |
| echo "URL git $(params.URL_GIT_SSL)" | |
| echo "Verify ssl with cacert path" | |
| curl -I --cacert /tekton-custom-certs/ca-bundle.crt "$(params.URL_GIT_SSL)" | |
| echo "Verify ssl without cacert path" | |
| curl -I "$(params.URL_GIT_SSL)" | |
| /ko-app/git-init -url="$(params.URL_GIT_SSL)" -revision=master -refspec= -path=/workspace/output/ -sslVerify=true -submodules=true -depth=1 -sparseCheckoutDirectories= | |
| image: registry.redhat.io/openshift-pipelines/pipelines-git-init-rhel8@sha256:158b0fda662e5bc05e2ff46f6864a8620bbb45e1a2388a456de43aad6e72d8f7 | |
| name: run-ca-test | |
| timeout: 1h | |
| resources: {} | |
| ---- | |
| apiVersion: tekton.dev/v1beta1 | |
| kind: Pipeline | |
| metadata: | |
| name: test-ca-url | |
| spec: | |
| params: | |
| - default: 'https://gitea.miarma.local/gitea/tekton-prueba.git' | |
| description: url of the git repo for the code of deployment | |
| name: URL_GIT_SSL | |
| type: string | |
| tasks: | |
| - name: test-repository | |
| params: | |
| - name: URL_GIT_SSL | |
| value: $(params.URL_GIT_SSL) | |
| taskRef: | |
| kind: Task | |
| name: ca-test | |
| workspaces: | |
| - name: source | |
| workspace: shared-workspace | |
| workspaces: | |
| - name: shared-workspace |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment