Improve layout.

This commit is contained in:
jimmy committed 2022-08-26 22:08:39 -04:00
1 parent 1399f382b1
commit d63cbd3327
3 files changed
+23 -17

No files matched your search

+3 -15
View File
@@ -1,7 +1,7 @@
apiVersion: tekton.dev/v1beta1 apiVersion: tekton.dev/v1beta1
kind: Pipeline kind: Pipeline
metadata: metadata:
name: cat-git-repo name: git-pipeline
spec: spec:
description: A test pipeline. description: A test pipeline.
params: params:
@@ -23,20 +23,8 @@ spec:
params: params:
- name: url - name: url
value: $(params.repo-url) value: $(params.repo-url)
taskSpec: taskRef:
workspaces: name: j7s-git-clone
- name: output
- name: ssh-directory
params:
- name: url
steps:
- image: 192.168.1.128:8443/gitssh:latest
script: |
set -x
cp -r $(workspaces.ssh-directory.path) ~/.ssh
chmod 700 ~/.ssh
chmod -R 400 ~/.ssh/*
git clone $(params.url) $(workspaces.output.path)
- name: cat-readme - name: cat-readme
runAfter: ["fetch-repo"] runAfter: ["fetch-repo"]
+2 -2
View File
@@ -1,10 +1,10 @@
apiVersion: tekton.dev/v1beta1 apiVersion: tekton.dev/v1beta1
kind: PipelineRun kind: PipelineRun
metadata: metadata:
name: with-custom-container-2 name: with-good-layout
spec: spec:
pipelineRef: pipelineRef:
name: cat-git-repo name: git-pipeline
workspaces: workspaces:
- name: shared-data - name: shared-data
volumeClaimTemplate: volumeClaimTemplate:
+18
View File
@@ -0,0 +1,18 @@
apiVersion: tekton.dev/v1beta1
kind: Task
metadata:
name: j7s-git-clone
spec:
workspaces:
- name: output
- name: ssh-directory
params:
- name: url
steps:
- image: 192.168.1.128:8443/gitssh:latest
script: |
set -x
cp -r $(workspaces.ssh-directory.path) ~/.ssh
chmod 700 ~/.ssh
chmod -R 400 ~/.ssh/*
git clone $(params.url) $(workspaces.output.path)