Skip to content

Commit

Permalink
fix: address review comments
Browse files Browse the repository at this point in the history
Signed-off-by: Chenxiong Qi <[email protected]>
  • Loading branch information
tkdchen committed Jul 11, 2024
1 parent 1d41c5a commit b5dd706
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions task/build-image-manifest/0.1/build-image-manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ spec:
suffix=".dockerfile"
image_without_tag=${IMAGE%:*}
# remove the potential existing newline
manifest_digest=$(cat "${IMAGE_DIGEST_FILE}" | tr -d '\r\n')
manifest_digest=$(cat "${IMAGE_DIGEST_FILE}")
dockerfile_image=${image_without_tag}:${manifest_digest/:/-}${suffix}
artifact_type=application/vnd.konflux.dockerfile
Expand All @@ -130,7 +130,7 @@ spec:
# Do not assume the actual file name. Generally, it could be Dockerfile or Containerfile.
cd "$output_dir"
n=1
find . -type f | while read filename; do
find . -type f | while read -r filename; do
if [ $n -gt 1 ]; then
echo "Multiple container files exist in the dockerfile image." >&2
ls >&2
Expand Down
2 changes: 1 addition & 1 deletion task/buildah-oci-ta/0.1/buildah-oci-ta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ spec:
suffix=".dockerfile"
image_without_tag=${IMAGE%:*}
# remove the potential existing newline
manifest_digest=$(cat "${IMAGE_DIGEST_FILE}" | tr -d '\r\n')
manifest_digest=$(cat "${IMAGE_DIGEST_FILE}")
dockerfile_image=${image_without_tag}:${manifest_digest/:/-}${suffix}
artifact_type=application/vnd.konflux.dockerfile
Expand Down
2 changes: 1 addition & 1 deletion task/buildah-remote-oci-ta/0.1/buildah-remote-oci-ta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,7 @@ spec:
suffix=".dockerfile"
image_without_tag=${IMAGE%:*}
# remove the potential existing newline
manifest_digest=$(cat "${IMAGE_DIGEST_FILE}" | tr -d '\r\n')
manifest_digest=$(cat "${IMAGE_DIGEST_FILE}")
dockerfile_image=${image_without_tag}:${manifest_digest/:/-}${suffix}
artifact_type=application/vnd.konflux.dockerfile
Expand Down
2 changes: 1 addition & 1 deletion task/buildah-remote/0.1/buildah-remote.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@ spec:
suffix=".dockerfile"
image_without_tag=${IMAGE%:*}
# remove the potential existing newline
manifest_digest=$(cat "${IMAGE_DIGEST_FILE}" | tr -d '\r\n')
manifest_digest=$(cat "${IMAGE_DIGEST_FILE}")
dockerfile_image=${image_without_tag}:${manifest_digest/:/-}${suffix}
artifact_type=application/vnd.konflux.dockerfile
Expand Down
2 changes: 1 addition & 1 deletion task/buildah-rhtap/0.1/buildah-rhtap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ spec:
suffix=".dockerfile"
image_without_tag=${IMAGE%:*}
# remove the potential existing newline
manifest_digest=$(cat "${IMAGE_DIGEST_FILE}" | tr -d '\r\n')
manifest_digest=$(cat "${IMAGE_DIGEST_FILE}")
dockerfile_image=${image_without_tag}:${manifest_digest/:/-}${suffix}
artifact_type=application/vnd.konflux.dockerfile
Expand Down
2 changes: 1 addition & 1 deletion task/buildah/0.1/buildah.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ spec:
suffix=".dockerfile"
image_without_tag=${IMAGE%:*}
# remove the potential existing newline
manifest_digest=$(cat "${IMAGE_DIGEST_FILE}" | tr -d '\r\n')
manifest_digest=$(cat "${IMAGE_DIGEST_FILE}")
dockerfile_image=${image_without_tag}:${manifest_digest/:/-}${suffix}
artifact_type=application/vnd.konflux.dockerfile
Expand Down

0 comments on commit b5dd706

Please sign in to comment.