diff --git a/task/buildah-oci-ta/0.2/buildah-oci-ta.yaml b/task/buildah-oci-ta/0.2/buildah-oci-ta.yaml index b6403bae1b..71923d5bcd 100644 --- a/task/buildah-oci-ta/0.2/buildah-oci-ta.yaml +++ b/task/buildah-oci-ta/0.2/buildah-oci-ta.yaml @@ -547,12 +547,13 @@ spec: echo $container >/shared/container_name touch /shared/base_images_digests + echo "Recording base image digests used" for image in $BASE_IMAGES; do base_image_digest=$(buildah images --format '{{ .Name }}:{{ .Tag }}@{{ .Digest }}' --filter reference="$image") # In some cases, there might be BASE_IMAGES, but not any associated digest. This happens # if buildah did not use that particular image during build because it was skipped if [ -n "$base_image_digest" ]; then - echo "$image $base_image_digest" >>/shared/base_images_digests + echo "$image $base_image_digest" | tee -a /shared/base_images_digests fi done computeResources: diff --git a/task/buildah-oci-ta/0.3/buildah-oci-ta.yaml b/task/buildah-oci-ta/0.3/buildah-oci-ta.yaml index baa0315e18..9a722c1357 100644 --- a/task/buildah-oci-ta/0.3/buildah-oci-ta.yaml +++ b/task/buildah-oci-ta/0.3/buildah-oci-ta.yaml @@ -535,12 +535,13 @@ spec: echo $container >/shared/container_name touch /shared/base_images_digests + echo "Recording base image digests used" for image in $BASE_IMAGES; do base_image_digest=$(buildah images --format '{{ .Name }}:{{ .Tag }}@{{ .Digest }}' --filter reference="$image") # In some cases, there might be BASE_IMAGES, but not any associated digest. This happens # if buildah did not use that particular image during build because it was skipped if [ -n "$base_image_digest" ]; then - echo "$image $base_image_digest" >>/shared/base_images_digests + echo "$image $base_image_digest" | tee -a /shared/base_images_digests fi done computeResources: diff --git a/task/buildah-remote-oci-ta/0.2/buildah-remote-oci-ta.yaml b/task/buildah-remote-oci-ta/0.2/buildah-remote-oci-ta.yaml index c723c359f4..cafdee1ce1 100644 --- a/task/buildah-remote-oci-ta/0.2/buildah-remote-oci-ta.yaml +++ b/task/buildah-remote-oci-ta/0.2/buildah-remote-oci-ta.yaml @@ -581,12 +581,13 @@ spec: echo $container >/shared/container_name touch /shared/base_images_digests + echo "Recording base image digests used" for image in $BASE_IMAGES; do base_image_digest=$(buildah images --format '{{ .Name }}:{{ .Tag }}@{{ .Digest }}' --filter reference="$image") # In some cases, there might be BASE_IMAGES, but not any associated digest. This happens # if buildah did not use that particular image during build because it was skipped if [ -n "$base_image_digest" ]; then - echo "$image $base_image_digest" >>/shared/base_images_digests + echo "$image $base_image_digest" | tee -a /shared/base_images_digests fi done diff --git a/task/buildah-remote-oci-ta/0.3/buildah-remote-oci-ta.yaml b/task/buildah-remote-oci-ta/0.3/buildah-remote-oci-ta.yaml index b57b32858b..952b4c2fb6 100644 --- a/task/buildah-remote-oci-ta/0.3/buildah-remote-oci-ta.yaml +++ b/task/buildah-remote-oci-ta/0.3/buildah-remote-oci-ta.yaml @@ -569,12 +569,13 @@ spec: echo $container >/shared/container_name touch /shared/base_images_digests + echo "Recording base image digests used" for image in $BASE_IMAGES; do base_image_digest=$(buildah images --format '{{ .Name }}:{{ .Tag }}@{{ .Digest }}' --filter reference="$image") # In some cases, there might be BASE_IMAGES, but not any associated digest. This happens # if buildah did not use that particular image during build because it was skipped if [ -n "$base_image_digest" ]; then - echo "$image $base_image_digest" >>/shared/base_images_digests + echo "$image $base_image_digest" | tee -a /shared/base_images_digests fi done diff --git a/task/buildah-remote/0.2/buildah-remote.yaml b/task/buildah-remote/0.2/buildah-remote.yaml index 75b4b6a1dc..e1b7a8c9c5 100644 --- a/task/buildah-remote/0.2/buildah-remote.yaml +++ b/task/buildah-remote/0.2/buildah-remote.yaml @@ -557,12 +557,13 @@ spec: echo $container > /shared/container_name touch /shared/base_images_digests + echo "Recording base image digests used" for image in $BASE_IMAGES; do base_image_digest=$(buildah images --format '{{ .Name }}:{{ .Tag }}@{{ .Digest }}' --filter reference="$image") # In some cases, there might be BASE_IMAGES, but not any associated digest. This happens # if buildah did not use that particular image during build because it was skipped if [ -n "$base_image_digest" ]; then - echo "$image $base_image_digest" >> /shared/base_images_digests + echo "$image $base_image_digest" | tee -a /shared/base_images_digests fi done diff --git a/task/buildah-remote/0.3/buildah-remote.yaml b/task/buildah-remote/0.3/buildah-remote.yaml index 664c166919..c123216593 100644 --- a/task/buildah-remote/0.3/buildah-remote.yaml +++ b/task/buildah-remote/0.3/buildah-remote.yaml @@ -545,12 +545,13 @@ spec: echo $container > /shared/container_name touch /shared/base_images_digests + echo "Recording base image digests used" for image in $BASE_IMAGES; do base_image_digest=$(buildah images --format '{{ .Name }}:{{ .Tag }}@{{ .Digest }}' --filter reference="$image") # In some cases, there might be BASE_IMAGES, but not any associated digest. This happens # if buildah did not use that particular image during build because it was skipped if [ -n "$base_image_digest" ]; then - echo "$image $base_image_digest" >> /shared/base_images_digests + echo "$image $base_image_digest" | tee -a /shared/base_images_digests fi done diff --git a/task/buildah/0.2/buildah.yaml b/task/buildah/0.2/buildah.yaml index 2b0f37a84f..7e75fe4775 100644 --- a/task/buildah/0.2/buildah.yaml +++ b/task/buildah/0.2/buildah.yaml @@ -478,12 +478,13 @@ spec: echo $container > /shared/container_name touch /shared/base_images_digests + echo "Recording base image digests used" for image in $BASE_IMAGES; do base_image_digest=$(buildah images --format '{{ .Name }}:{{ .Tag }}@{{ .Digest }}' --filter reference="$image") # In some cases, there might be BASE_IMAGES, but not any associated digest. This happens # if buildah did not use that particular image during build because it was skipped if [ -n "$base_image_digest" ]; then - echo "$image $base_image_digest" >> /shared/base_images_digests + echo "$image $base_image_digest" | tee -a /shared/base_images_digests fi done diff --git a/task/buildah/0.3/buildah.yaml b/task/buildah/0.3/buildah.yaml index 661a6f341d..8aaf6045eb 100644 --- a/task/buildah/0.3/buildah.yaml +++ b/task/buildah/0.3/buildah.yaml @@ -467,12 +467,13 @@ spec: echo $container > /shared/container_name touch /shared/base_images_digests + echo "Recording base image digests used" for image in $BASE_IMAGES; do base_image_digest=$(buildah images --format '{{ .Name }}:{{ .Tag }}@{{ .Digest }}' --filter reference="$image") # In some cases, there might be BASE_IMAGES, but not any associated digest. This happens # if buildah did not use that particular image during build because it was skipped if [ -n "$base_image_digest" ]; then - echo "$image $base_image_digest" >> /shared/base_images_digests + echo "$image $base_image_digest" | tee -a /shared/base_images_digests fi done