Skip to content

Commit

Permalink
Add expiration to tmp operator-sdk images
Browse files Browse the repository at this point in the history
  • Loading branch information
tkrishtop committed Oct 19, 2023
1 parent aa2a6ee commit b861749
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions roles/operator_sdk/tasks/build_scorecard_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
cmd: >
podman buildx build
-t {{ operator_sdk_img }}
--label quay.expires-after=1d
-f ./images/operator-sdk/Dockerfile
--load . &&
podman push
Expand Down
6 changes: 3 additions & 3 deletions roles/operator_sdk/tasks/teardown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
when: scorecard_is_file is defined

- name: Remove operator_sdk_img built from the source
containers.podman.podman_image:
name: "{{ operator_sdk_img }}"
state: absent
shell:
cmd: >
podman rmi -f {{ operator_sdk_img }}
...

0 comments on commit b861749

Please sign in to comment.