From 1809557e70aaa07ada25eecc6998fac98d0e61ba Mon Sep 17 00:00:00 2001 From: Robert Cerven Date: Tue, 16 Jul 2024 21:03:02 +0200 Subject: [PATCH 1/2] fix Signed-off-by: Robert Cerven --- .tekton/linkingtestcomp-pull-request.yaml | 6 +++++ .tekton/linkingtestcomp-push.yaml | 6 +++++ .tekton/rcerven-test.yaml | 28 +++++++++++++++++++++++ 3 files changed, 40 insertions(+) create mode 100644 .tekton/rcerven-test.yaml diff --git a/.tekton/linkingtestcomp-pull-request.yaml b/.tekton/linkingtestcomp-pull-request.yaml index 68926449da..489832503f 100644 --- a/.tekton/linkingtestcomp-pull-request.yaml +++ b/.tekton/linkingtestcomp-pull-request.yaml @@ -156,6 +156,12 @@ spec: - name: kind value: task resolver: bundles + - name: rcerven-test + taskRef: + kind: Task + name: rcerven-test + runAfter: + - init - name: clone-repository params: - name: url diff --git a/.tekton/linkingtestcomp-push.yaml b/.tekton/linkingtestcomp-push.yaml index d9cd7f561e..27d268f4ad 100644 --- a/.tekton/linkingtestcomp-push.yaml +++ b/.tekton/linkingtestcomp-push.yaml @@ -153,6 +153,12 @@ spec: - name: kind value: task resolver: bundles + - name: rcerven-test + taskRef: + kind: Task + name: rcerven-test + runAfter: + - init - name: clone-repository params: - name: url diff --git a/.tekton/rcerven-test.yaml b/.tekton/rcerven-test.yaml new file mode 100644 index 0000000000..b7af4c2f13 --- /dev/null +++ b/.tekton/rcerven-test.yaml @@ -0,0 +1,28 @@ +--- +apiVersion: tekton.dev/v1beta1 +kind: Task +metadata: + labels: + app.kubernetes.io/version: "0.1" + annotations: + tekton.dev/pipelines.minVersion: "0.12.1" + tekton.dev/tags: "konflux" + name: rcerven-test +spec: + description: >- + Inspects and analyzes manifest data of the container's source image, and its base image (if available) using Skopeo. + An image's manifest data contains information about the layers that make up the image, the platforms for which the image is intended, and other metadata about the image. + workspaces: + - name: source + steps: + - name: inspect-image + image: quay.io/redhat-appstudio/konflux-test:v1.4.3@sha256:75d3e0ada1d07511e6b9342398929fe2690367b33142bf99ecad7dc3bccc3847 + workingDir: $(workspaces.source.path)/hacbs/$(context.task.name) + securityContext: + runAsUser: 0 + capabilities: + add: + - SETFCAP + script: | + #!/usr/bin/env bash + echo "my test" From cc0d89a36e59c63ce9d2a7708fd7465cb499208f Mon Sep 17 00:00:00 2001 From: Robert Cerven Date: Tue, 16 Jul 2024 21:06:57 +0200 Subject: [PATCH 2/2] fix Signed-off-by: Robert Cerven --- .tekton/linkingtestcomp-pull-request.yaml | 3 +++ .tekton/linkingtestcomp-push.yaml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/.tekton/linkingtestcomp-pull-request.yaml b/.tekton/linkingtestcomp-pull-request.yaml index 489832503f..e7508b0002 100644 --- a/.tekton/linkingtestcomp-pull-request.yaml +++ b/.tekton/linkingtestcomp-pull-request.yaml @@ -162,6 +162,9 @@ spec: name: rcerven-test runAfter: - init + workspaces: + - name: source + workspace: workspace - name: clone-repository params: - name: url diff --git a/.tekton/linkingtestcomp-push.yaml b/.tekton/linkingtestcomp-push.yaml index 27d268f4ad..3639488902 100644 --- a/.tekton/linkingtestcomp-push.yaml +++ b/.tekton/linkingtestcomp-push.yaml @@ -159,6 +159,9 @@ spec: name: rcerven-test runAfter: - init + workspaces: + - name: source + workspace: workspace - name: clone-repository params: - name: url