-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loading status checks…
Merge pull request #214 from stakater/task-updates
Update tasks
- v0.0.312
- v0.0.311
- v0.0.310
- v0.0.309
- v0.0.308
- v0.0.307
- v0.0.306
- v0.0.305
- v0.0.304
- v0.0.303
- v0.0.302
- v0.0.301
- v0.0.300
- v0.0.299
- v0.0.298
- v0.0.297
- v0.0.296
- v0.0.295
- v0.0.294
- v0.0.293
- v0.0.292
- v0.0.291
- v0.0.290
- v0.0.289
- v0.0.288
- v0.0.287
- v0.0.286
- v0.0.285
- v0.0.284
- v0.0.283
- v0.0.282
- v0.0.281
- v0.0.280
- v0.0.279
- v0.0.278
- v0.0.277
- v0.0.276
- v0.0.275
- v0.0.274
- v0.0.273
- v0.0.272
- v0.0.271
- v0.0.270
- v0.0.269
- v0.0.268
- v0.0.267
- v0.0.266
- v0.0.265
- v0.0.264
- v0.0.263
- v0.0.262
- v0.0.261
- v0.0.260
- v0.0.259
- v0.0.258
- v0.0.257
- v0.0.256
- v0.0.255
- v0.0.254
- v0.0.253
- v0.0.252
- v0.0.251
- v0.0.250
- v0.0.249
- v0.0.248
- v0.0.247
- v0.0.246
- v0.0.245
- v0.0.244
- v0.0.243
- v0.0.242
- v0.0.241
- v0.0.240
- v0.0.239
- v0.0.238
- v0.0.237
- v0.0.236
- v0.0.235
- v0.0.234
- v0.0.233
- v0.0.232
- v0.0.231
- v0.0.230
- v0.0.229
- v0.0.228
- v0.0.227
- v0.0.226
- v0.0.225
- v0.0.224
- v0.0.223
- v0.0.222
- v0.0.221
- v0.0.220
- v0.0.219
- v0.0.218
- v0.0.217
- v0.0.216
- v0.0.215
- v0.0.214
- v0.0.213
- v0.0.212
- v0.0.211
- v0.0.210
- v0.0.209
- v0.0.208
- v0.0.207
- v0.0.206
- v0.0.205
- v0.0.204
- v0.0.203
- v0.0.202
- v0.0.201
- v0.0.200
- v0.0.199
- v0.0.198
- v0.0.197
- v0.0.196
- v0.0.195
- v0.0.194
- v0.0.193
- v0.0.192
- v0.0.191
- v0.0.190
- v0.0.189
Showing
9 changed files
with
120 additions
and
105 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ | |
|
||
### Create PipelineRun with Rox Image Scan Task | ||
|
||
You have already created a PipelineRun in the previous tutorial. Let's now add another task `rox-image-scan` to it. | ||
You have already created a PipelineRun in the previous tutorial. Let's now add another task [`rox-image-scan`](https://github.com/stakater-tekton-catalog/rox-image-scan) to it. | ||
|
||
1. Open up the PipelineRun file you created in the previous tutorial. | ||
1. Now edit the file so the YAML becomes like the one given below. | ||
|
@@ -27,32 +27,35 @@ You have already created a PipelineRun in the previous tutorial. Let's now add a | |
annotations: | ||
pipelinesascode.tekton.dev/on-event: "[pull_request]" # Trigger the pipelineRun on push events on branch main | ||
pipelinesascode.tekton.dev/on-target-branch: "main" | ||
pipelinesascode.tekton.dev/task: "[git-clone, https://raw.githubusercontent.com/stakater/tekton-catalog/main/stakater-create-git-tag/rendered/stakater-create-git-tag-0.0.7.yaml, https://raw.githubusercontent.com/stakater/tekton-catalog/main/stakater-create-environment/rendered/stakater-create-environment-0.0.16.yaml,https://raw.githubusercontent.com/stakater/tekton-catalog/main/stakater-code-linting/rendered/stakater-code-linting-0.0.3.yaml, | ||
https://raw.githubusercontent.com/stakater/tekton-catalog/main/stakater-kube-linting/rendered/stakater-kube-linting-0.0.6.yaml, | ||
https://raw.githubusercontent.com/stakater/tekton-catalog/main/stakater-unit-test/rendered/stakater-unit-test-0.0.5.yaml, | ||
https://raw.githubusercontent.com/stakater/tekton-catalog/main/stakater-sonarqube-scan/rendered/stakater-sonarqube-scan-0.0.5.yaml, | ||
https://raw.githubusercontent.com/stakater/tekton-catalog/main/stakater-buildah/rendered/stakater-buildah-0.0.18.yaml, | ||
https://raw.githubusercontent.com/stakater/tekton-catalog/main/stakater-trivy-scan/rendered/stakater-trivy-scan-0.0.3.yaml, | ||
https://raw.githubusercontent.com/stakater/tekton-catalog/main/stakater-rox-image-scan/rendered/stakater-rox-image-scan-0.0.4.yaml]" | ||
pipelinesascode.tekton.dev/task: "[git-clone, | ||
https://raw.githubusercontent.com/stakater-tekton-catalog/create-git-tag/0.0.12/task/stakater-create-git-tag/stakater-create-git-tag.yaml, | ||
https://raw.githubusercontent.com/stakater-tekton-catalog/create-environment/0.0.16/task/stakater-create-environment/stakater-create-environment.yaml, | ||
https://raw.githubusercontent.com/stakater-tekton-catalog/code-linting-mvn/0.0.4/task/stakater-code-linting/stakater-code-linting.yaml, | ||
https://raw.githubusercontent.com/stakater-tekton-catalog/kube-linting/0.0.7/task/stakater-kube-linting/stakater-kube-linting.yaml, | ||
https://raw.githubusercontent.com/stakater-tekton-catalog/unit-test/0.0.6/task/stakater-unit-test/stakater-unit-test.yaml, | ||
https://raw.githubusercontent.com/stakater-tekton-catalog/sonarqube-scan/0.0.13/task/stakater-sonarqube-scan/stakater-sonarqube-scan.yaml, | ||
https://raw.githubusercontent.com/stakater-tekton-catalog/buildah/0.0.29/task/stakater-buildah/stakater-buildah.yaml, | ||
https://raw.githubusercontent.com/stakater-tekton-catalog/trivy-scan/0.0.3/task/stakater-trivy-scan/stakater-trivy-scan.yaml, | ||
https://raw.githubusercontent.com/stakater-tekton-catalog/rox-image-scan/0.0.4/task/stakater-rox-image-scan/stakater-rox-image-scan.yaml]" | ||
pipelinesascode.tekton.dev/max-keep-runs: "2" # Only remain 2 latest pipelineRuns on SAAP | ||
spec: | ||
params: | ||
- name: repo_url | ||
value: "[email protected]:<YOUR-ORG>/<YOUR-REPO-NAME>/" # Place your repo SSH URL | ||
- name: gitrevision | ||
- name: git_revision | ||
value: {{revision}} # Dynamic variable to fetch branch name of the push event on your repo | ||
- name: repo_path | ||
value: {{repo_name}} # Dynamic varaible to fetch repo name | ||
- name: image_registry_url | ||
value: "<docker-registry-url>" # Place image registry URL without https:// | ||
- name: image_registry | ||
value: "<docker-registry-url>" # Place image registry URL without https:// succeeded by your application name | ||
- name: helm_registry | ||
value: "<https://helm-registry-url>" # Place helm registry URL with https:// | ||
- name: pull_request_number | ||
value: {{pull_request_number}} | ||
pipelineSpec: # Define what parameters will be used for pipeline | ||
params: | ||
- name: repo_url | ||
- name: gitrevision | ||
- name: git_revision | ||
- name: repo_path | ||
- name: image_registry_url | ||
- name: helm_registry | ||
|
@@ -76,12 +79,12 @@ You have already created a PipelineRun in the previous tutorial. Let's now add a | |
- name: url | ||
value: $(params.repo_url) | ||
- name: revision | ||
value: $(params.gitrevision) | ||
value: $(params.git_revision) | ||
- name: create-git-tag | ||
runAfter: | ||
- fetch-repository | ||
taskRef: | ||
name: stakater-create-git-tag-0.0.7 | ||
name: stakater-create-git-tag | ||
kind: Task | ||
params: | ||
- name: PR_NUMBER | ||
|
@@ -98,7 +101,7 @@ You have already created a PipelineRun in the previous tutorial. Let's now add a | |
- create-git-tag | ||
taskRef: | ||
kind: Task | ||
name: stakater-create-environment-0.0.15 | ||
name: stakater-create-environment | ||
params: | ||
- name: CREATE_ON_CLUSTER | ||
value: "true" | ||
|
@@ -125,7 +128,7 @@ You have already created a PipelineRun in the previous tutorial. Let's now add a | |
runAfter: | ||
- stakater-create-environment | ||
taskRef: | ||
name: stakater-code-linting-0.0.3 | ||
name: stakater-code-linting | ||
kind: Task | ||
workspaces: | ||
- name: source | ||
|
@@ -134,7 +137,7 @@ You have already created a PipelineRun in the previous tutorial. Let's now add a | |
runAfter: | ||
- stakater-create-environment | ||
taskRef: | ||
name: stakater-kube-linting-0.0.6 | ||
name: stakater-kube-linting | ||
kind: Task | ||
params: | ||
- name: FILE | ||
|
@@ -151,7 +154,7 @@ You have already created a PipelineRun in the previous tutorial. Let's now add a | |
- code-linting | ||
- kube-linting | ||
taskRef: | ||
name: stakater-unit-test-0.0.5 | ||
name: stakater-unit-test | ||
kind: Task | ||
workspaces: | ||
- name: source | ||
|
@@ -160,7 +163,7 @@ You have already created a PipelineRun in the previous tutorial. Let's now add a | |
runAfter: | ||
- unit-test | ||
taskRef: | ||
name: stakater-sonarqube-scan-0.0.5 | ||
name: stakater-sonarqube-scan | ||
kind: Task | ||
params: | ||
- name: SONAR_HOST_URL | ||
|
@@ -175,7 +178,7 @@ You have already created a PipelineRun in the previous tutorial. Let's now add a | |
runAfter: | ||
- unit-test | ||
taskRef: | ||
name: stakater-buildah-0.0.18 | ||
name: stakater-buildah | ||
kind: Task | ||
params: | ||
- name: IMAGE | ||
|
@@ -198,7 +201,7 @@ You have already created a PipelineRun in the previous tutorial. Let's now add a | |
- buildah | ||
- sonarqube-scan | ||
taskRef: | ||
name: stakater-trivy-scan-0.0.3 | ||
name: stakater-trivy-scan | ||
kind: Task | ||
params: | ||
- name: IMAGE | ||
|
@@ -211,7 +214,7 @@ You have already created a PipelineRun in the previous tutorial. Let's now add a | |
- buildah | ||
- sonarqube-scan | ||
taskRef: | ||
name: stakater-rox-image-scan-0.0.4 | ||
name: stakater-rox-image-scan | ||
kind: Task | ||
params: | ||
- name: IMAGE | ||
|
@@ -244,7 +247,8 @@ You have already created a PipelineRun in the previous tutorial. Let's now add a | |
``` | ||
!!! note | ||
Remember to add the remote task in the annotations | ||
Remember to add the remote task in the annotations | ||
 | ||
1. Create a pull request with you changes. This should trigger the pipeline in the build namespace. | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ | |
|
||
### Create PipelineRun with Rox Image Check Task | ||
|
||
You have already created a PipelineRun in the previous tutorial. Let's now add another task `rox-image-check` to it. | ||
You have already created a PipelineRun in the previous tutorial. Let's now add another task [`rox-image-check`](https://github.com/stakater-tekton-catalog/rox-image-check) to it. | ||
|
||
1. Open up the PipelineRun file you created in the previous tutorial. | ||
1. Now edit the file so the YAML becomes like the one given below. | ||
|
@@ -27,35 +27,37 @@ You have already created a PipelineRun in the previous tutorial. Let's now add a | |
pipelinesascode.tekton.dev/on-event: "[pull_request]" # Trigger the pipelineRun on push events on branch main | ||
pipelinesascode.tekton.dev/on-target-branch: "main" | ||
pipelinesascode.tekton.dev/task: "[git-clone, https://raw.githubusercontent.com/stakater/tekton-catalog/main/stakater-create-git-tag/rendered/stakater-create-git-tag-0.0.7.yaml, https://raw.githubusercontent.com/stakater/tekton-catalog/main/stakater-create-environment/rendered/stakater-create-environment-0.0.16.yaml,https://raw.githubusercontent.com/stakater/tekton-catalog/main/stakater-code-linting/rendered/stakater-code-linting-0.0.3.yaml, | ||
https://raw.githubusercontent.com/stakater/tekton-catalog/main/stakater-kube-linting/rendered/stakater-kube-linting-0.0.6.yaml, | ||
https://raw.githubusercontent.com/stakater/tekton-catalog/main/stakater-unit-test/rendered/stakater-unit-test-0.0.5.yaml, | ||
https://raw.githubusercontent.com/stakater/tekton-catalog/main/stakater-sonarqube-scan/rendered/stakater-sonarqube-scan-0.0.5.yaml, | ||
https://raw.githubusercontent.com/stakater/tekton-catalog/main/stakater-buildah/rendered/stakater-buildah-0.0.18.yaml, | ||
https://raw.githubusercontent.com/stakater/tekton-catalog/main/stakater-trivy-scan/rendered/stakater-trivy-scan-0.0.3.yaml, | ||
https://raw.githubusercontent.com/stakater/tekton-catalog/main/stakater-rox-image-scan/rendered/stakater-rox-image-scan-0.0.4.yaml, | ||
https://raw.githubusercontent.com/stakater/tekton-catalog/main/stakater-rox-deployment-check/rendered/stakater-rox-deployment-check-0.0.4.yaml, | ||
https://raw.githubusercontent.com/stakater/tekton-catalog/main/stakater-rox-image-check/rendered/stakater-rox-image-check-0.0.6.yaml]" | ||
https://raw.githubusercontent.com/stakater-tekton-catalog/create-git-tag/0.0.12/task/stakater-create-git-tag/stakater-create-git-tag.yaml, | ||
https://raw.githubusercontent.com/stakater-tekton-catalog/create-environment/0.0.16/task/stakater-create-environment/stakater-create-environment.yaml, | ||
https://raw.githubusercontent.com/stakater-tekton-catalog/code-linting-mvn/0.0.4/task/stakater-code-linting/stakater-code-linting.yaml, | ||
https://raw.githubusercontent.com/stakater-tekton-catalog/kube-linting/0.0.7/task/stakater-kube-linting/stakater-kube-linting.yaml, | ||
https://raw.githubusercontent.com/stakater-tekton-catalog/unit-test/0.0.6/task/stakater-unit-test/stakater-unit-test.yaml, | ||
https://raw.githubusercontent.com/stakater-tekton-catalog/sonarqube-scan/0.0.13/task/stakater-sonarqube-scan/stakater-sonarqube-scan.yaml, | ||
https://raw.githubusercontent.com/stakater-tekton-catalog/buildah/0.0.29/task/stakater-buildah/stakater-buildah.yaml, | ||
https://raw.githubusercontent.com/stakater-tekton-catalog/trivy-scan/0.0.3/task/stakater-trivy-scan/stakater-trivy-scan.yaml, | ||
https://raw.githubusercontent.com/stakater-tekton-catalog/rox-image-scan/0.0.4/task/stakater-rox-image-scan/stakater-rox-image-scan.yaml, | ||
https://raw.githubusercontent.com/stakater-tekton-catalog/rox-image-check/0.0.7/task/stakater-rox-image-check/stakater-rox-image-check.yaml]" | ||
pipelinesascode.tekton.dev/max-keep-runs: "2" # Only remain 2 latest pipelineRuns on SAAP | ||
spec: | ||
params: | ||
- name: repo_url | ||
value: "[email protected]:<YOUR-ORG>/<YOUR-REPO-NAME>/" # Place your repo SSH URL | ||
- name: gitrevision | ||
- name: git_revision | ||
value: {{revision}} # Dynamic variable to fetch branch name of the push event on your repo | ||
- name: repo_path | ||
value: {{repo_name}} # Dynamic varaible to fetch repo name | ||
- name: image_registry_url | ||
value: "<docker-registry-url>" # Place image registry URL without https:// | ||
- name: image_registry | ||
value: "<docker-registry-url>" # Place image registry URL without https:// succeeded by your application name | ||
- name: helm_registry | ||
value: "<https://helm-registry-url>" # Place helm registry URL with https:// | ||
- name: pull_request_number | ||
value: {{pull_request_number}} | ||
pipelineSpec: # Define what parameters will be used for pipeline | ||
params: | ||
- name: repo_url | ||
- name: gitrevision | ||
- name: git_revision | ||
- name: repo_path | ||
- name: image_registry_url | ||
- name: image_registry | ||
- name: helm_registry | ||
- name: pull_request_number | ||
workspaces: # Mention what workspaces will be used by this pipeline to store data and used by data transferring between tasks | ||
|
@@ -77,12 +79,12 @@ You have already created a PipelineRun in the previous tutorial. Let's now add a | |
- name: url | ||
value: $(params.repo_url) | ||
- name: revision | ||
value: $(params.gitrevision) | ||
value: $(params.git_revision) | ||
- name: create-git-tag | ||
runAfter: | ||
- fetch-repository | ||
taskRef: | ||
name: stakater-create-git-tag-0.0.7 | ||
name: stakater-create-git-tag | ||
kind: Task | ||
params: | ||
- name: PR_NUMBER | ||
|
@@ -99,7 +101,7 @@ You have already created a PipelineRun in the previous tutorial. Let's now add a | |
- create-git-tag | ||
taskRef: | ||
kind: Task | ||
name: stakater-create-environment-0.0.15 | ||
name: stakater-create-environment | ||
params: | ||
- name: CREATE_ON_CLUSTER | ||
value: "true" | ||
|
@@ -126,7 +128,7 @@ You have already created a PipelineRun in the previous tutorial. Let's now add a | |
runAfter: | ||
- stakater-create-environment | ||
taskRef: | ||
name: stakater-code-linting-0.0.3 | ||
name: stakater-code-linting | ||
kind: Task | ||
workspaces: | ||
- name: source | ||
|
@@ -135,7 +137,7 @@ You have already created a PipelineRun in the previous tutorial. Let's now add a | |
runAfter: | ||
- stakater-create-environment | ||
taskRef: | ||
name: stakater-kube-linting-0.0.6 | ||
name: stakater-kube-linting | ||
kind: Task | ||
params: | ||
- name: FILE | ||
|
@@ -152,7 +154,7 @@ You have already created a PipelineRun in the previous tutorial. Let's now add a | |
- code-linting | ||
- kube-linting | ||
taskRef: | ||
name: stakater-unit-test-0.0.5 | ||
name: stakater-unit-test | ||
kind: Task | ||
workspaces: | ||
- name: source | ||
|
@@ -161,7 +163,7 @@ You have already created a PipelineRun in the previous tutorial. Let's now add a | |
runAfter: | ||
- unit-test | ||
taskRef: | ||
name: stakater-sonarqube-scan-0.0.5 | ||
name: stakater-sonarqube-scan | ||
kind: Task | ||
params: | ||
- name: SONAR_HOST_URL | ||
|
@@ -176,7 +178,7 @@ You have already created a PipelineRun in the previous tutorial. Let's now add a | |
runAfter: | ||
- unit-test | ||
taskRef: | ||
name: stakater-buildah-0.0.18 | ||
name: stakater-buildah | ||
kind: Task | ||
params: | ||
- name: IMAGE | ||
|
@@ -199,7 +201,7 @@ You have already created a PipelineRun in the previous tutorial. Let's now add a | |
- buildah | ||
- sonarqube-scan | ||
taskRef: | ||
name: stakater-trivy-scan-0.0.3 | ||
name: stakater-trivy-scan | ||
kind: Task | ||
params: | ||
- name: IMAGE | ||
|
@@ -212,7 +214,7 @@ You have already created a PipelineRun in the previous tutorial. Let's now add a | |
- buildah | ||
- sonarqube-scan | ||
taskRef: | ||
name: stakater-rox-image-scan-0.0.4 | ||
name: stakater-rox-image-scan | ||
kind: Task | ||
params: | ||
- name: IMAGE | ||
|
@@ -232,7 +234,7 @@ You have already created a PipelineRun in the previous tutorial. Let's now add a | |
- buildah | ||
- sonarqube-scan | ||
taskRef: | ||
name: stakater-rox-image-check-0.0.7 | ||
name: stakater-rox-image-check | ||
kind: Task | ||
params: | ||
- name: IMAGE | ||
|
@@ -261,7 +263,8 @@ You have already created a PipelineRun in the previous tutorial. Let's now add a | |
``` | ||
!!! note | ||
Remember to add the remote task in the annotations | ||
Remember to add the remote task in the annotations | ||
 | ||
1. Create a pull request with you changes. This should trigger the pipeline in the build namespace. | ||
|
This file contains 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
This file contains 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
Binary file added
BIN
+83.1 KB
...elopers/tutorials/outer-loop/add-ci-pipeline/images/checkov-scan-annotation.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+69.9 KB
...tutorials/outer-loop/add-ci-pipeline/images/rox-deployment-check-annotation.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+76.8 KB
...pers/tutorials/outer-loop/add-ci-pipeline/images/rox-image-check-annotation.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+63 KB
...opers/tutorials/outer-loop/add-ci-pipeline/images/rox-image-scan-annotation.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.