-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add image scan and final cleanup task (#13)
- Loading branch information
1 parent
58ace86
commit 72f5e58
Showing
5 changed files
with
65 additions
and
24 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
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
--- | ||
apiVersion: tekton.dev/v1beta1 | ||
kind: Task | ||
metadata: | ||
name: delete-image-stream | ||
labels: | ||
app.kubernetes.io/version: "0.1" | ||
annotations: | ||
tekton.dev/pipelines.minVersion: "0.37.4" | ||
tekton.dev/categories: delete image stream | ||
spec: | ||
description: A task for deleting image stream in OpenShift | ||
params: | ||
- name: IMAGE_STREAM | ||
type: string | ||
description: The name of the image stream to be deleted from OpenShift | ||
- name: RUNNER_IMAGE | ||
type: string | ||
description: the OpenShift CLI image used to run the task | ||
default: "registry.redhat.io/openshift4/ose-cli@sha256:92d5e1b7dc2ef38e1c98084d25fb9d65dafa426d476702aed4448f6db752e8bb" | ||
workspaces: | ||
- name: source | ||
steps: | ||
- name: cleanup-image-stream | ||
image: $(params.RUNNER_IMAGE) | ||
workingDir: $(workspaces.source.path) | ||
script: | | ||
#!/usr/bin/env sh | ||
echo "Deleting the image stream:" | ||
oc delete is $(params.IMAGE_STREAM) |
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