Skip to content

Commit 0f84df2

Browse files
mporratoAllda
authored andcommitted
Fix permissions for inspect-image:podman-inspect
1 parent b11c845 commit 0f84df2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

ansible/roles/operator-pipeline/templates/openshift/tasks/inspect-image.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,16 @@ spec:
2929
skopeo login $(params.registry) --authfile $(workspaces.registry-credentials.path)/.dockerconfigjson \
3030
3131
skopeo inspect docker://$(params.image) > $(workspaces.image-data.path)/skopeo.json
32+
33+
truncate -s 0 $(workspaces.image-data.path)/podman.json
34+
chmod 664 $(workspaces.image-data.path)/podman.json
3235
- name: podman-inspect
36+
securityContext:
37+
runAsUser: 1000
3338
image: "$(params.podman_image)"
3439
script: |
3540
set -xe
3641
3742
podman pull $(params.image)
3843
39-
podman image inspect $(params.image) > $(workspaces.image-data.path)/podman.json
44+
podman image inspect $(params.image) >> $(workspaces.image-data.path)/podman.json

0 commit comments

Comments
 (0)