Skip to content

Commit 1c0fabc

Browse files
chmoueltheakshaypant
authored andcommitted
chore: Use git-clone artifacthub stepactions
Replaced the local HTTP-based git-clone stepaction with the official Tekton Hub resolver across Tekton workflows. Removed the redundant local stepaction definition file to keep configuration centralized. Signed-off-by: Chmouel Boudjnah <chmouel@redhat.com>
1 parent aeb85ab commit 1c0fabc

6 files changed

Lines changed: 55 additions & 238 deletions

File tree

.tekton/doc.yaml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,18 @@ spec:
3636
steps:
3737
- name: fetch-repo
3838
ref:
39-
resolver: http
39+
resolver: hub
4040
params:
41-
- name: url
42-
value: https://raw.githubusercontent.com/tektoncd/pipelines-as-code/refs/heads/main/.tekton/stepactions/git-clone.yaml
41+
- name: catalog
42+
value: git-clone-stepaction
43+
- name: type
44+
value: artifact
45+
- name: kind
46+
value: stepaction
47+
- name: name
48+
value: git-clone
49+
- name: version
50+
value: "1.7.0"
4351
params:
4452
- name: output-path
4553
value: $(workspaces.source.path)

.tekton/generate-coverage-release.yaml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,18 @@ spec:
3030
steps:
3131
- name: fetch-repo
3232
ref:
33-
resolver: http
33+
resolver: hub
3434
params:
35-
- name: url
36-
value: https://raw.githubusercontent.com/tektoncd/pipelines-as-code/refs/heads/main/.tekton/stepactions/git-clone.yaml
35+
- name: catalog
36+
value: git-clone-stepaction
37+
- name: type
38+
value: artifact
39+
- name: kind
40+
value: stepaction
41+
- name: name
42+
value: git-clone
43+
- name: version
44+
value: "1.7.0"
3745
params:
3846
- name: output-path
3947
value: $(workspaces.source.path)

.tekton/go.yaml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,18 @@ spec:
2727
steps:
2828
- name: fetch-repo
2929
ref:
30-
resolver: http
30+
resolver: hub
3131
params:
32-
- name: url
33-
value: https://raw.githubusercontent.com/tektoncd/pipelines-as-code/refs/heads/main/.tekton/stepactions/git-clone.yaml
32+
- name: catalog
33+
value: git-clone-stepaction
34+
- name: type
35+
value: artifact
36+
- name: kind
37+
value: stepaction
38+
- name: name
39+
value: git-clone
40+
- name: version
41+
value: "1.7.0"
3442
params:
3543
- name: output-path
3644
value: $(workspaces.source.path)

.tekton/linter.yaml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,18 @@ spec:
2626
steps:
2727
- name: fetch-repo
2828
ref:
29-
resolver: http
29+
resolver: hub
3030
params:
31-
- name: url
32-
value: https://raw.githubusercontent.com/tektoncd/pipelines-as-code/refs/heads/main/.tekton/stepactions/git-clone.yaml
31+
- name: catalog
32+
value: git-clone-stepaction
33+
- name: type
34+
value: artifact
35+
- name: kind
36+
value: stepaction
37+
- name: name
38+
value: git-clone
39+
- name: version
40+
value: "1.7.0"
3341
params:
3442
- name: output-path
3543
value: $(workspaces.source.path)

.tekton/stepactions/git-clone.yaml

Lines changed: 0 additions & 223 deletions
This file was deleted.

test/testdata/pipelinerun-stepactions.yaml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,18 @@ spec:
1515
steps:
1616
- name: fetch-repo-with-stepaction
1717
ref:
18-
resolver: http
18+
resolver: hub
1919
params:
20-
- name: url
21-
value: https://raw.githubusercontent.com/tektoncd/pipelines-as-code/refs/heads/main/.tekton/stepactions/git-clone.yaml
20+
- name: catalog
21+
value: git-clone-stepaction
22+
- name: type
23+
value: artifact
24+
- name: kind
25+
value: stepaction
26+
- name: name
27+
value: git-clone
28+
- name: version
29+
value: "1.7.0"
2230
params:
2331
- name: output-path
2432
value: "/tmp/output"

0 commit comments

Comments
 (0)