Skip to content

Commit

Permalink
Fix Tekton variable subs in -oci-ta Tasks
Browse files Browse the repository at this point in the history
Signed-off-by: Luiz Carvalho <[email protected]>
  • Loading branch information
lcarva committed Jun 13, 2024
1 parent 684c3f4 commit 4b24499
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
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 @@ -324,7 +324,7 @@ spec:
touch $(results.BASE_IMAGES_DIGESTS.path)
for image in $BASE_IMAGES; do
if [ "${image}" != "scratch" ]; then
buildah images --format '{{ .Name }}:{{ .Tag }}@{{ .Digest }}' --filter reference="$image" >>$( results.BASE_IMAGES_DIGESTS.path)
buildah images --format '{{ .Name }}:{{ .Tag }}@{{ .Digest }}' --filter reference="$image" >>$(results.BASE_IMAGES_DIGESTS.path)
fi
done
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 @@ -346,7 +346,7 @@ spec:
touch $(results.BASE_IMAGES_DIGESTS.path)
for image in $BASE_IMAGES; do
if [ "${image}" != "scratch" ]; then
buildah images --format '{{ .Name }}:{{ .Tag }}@{{ .Digest }}' --filter reference="$image" >>$( results.BASE_IMAGES_DIGESTS.path)
buildah images --format '{{ .Name }}:{{ .Tag }}@{{ .Digest }}' --filter reference="$image" >>$(results.BASE_IMAGES_DIGESTS.path)
fi
done
Expand Down
4 changes: 2 additions & 2 deletions task/git-clone-oci-ta/0.1/git-clone-oci-ta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -234,8 +234,8 @@ spec:
if [ "${EXIT_CODE}" != 0 ]; then
exit "${EXIT_CODE}"
fi
printf "%s" "${RESULT_SHA}" >"$( results.commit.path)"
printf "%s" "${PARAM_URL}" >"$( results.url.path)"
printf "%s" "${RESULT_SHA}" >"$(results.commit.path)"
printf "%s" "${PARAM_URL}" >"$(results.url.path)"
if [ "${PARAM_FETCH_TAGS}" = "true" ]; then
echo "Fetching tags"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ spec:
mkdir -p /var/workdir/cachi2
echo "true" >/var/workdir/source/.skip-trusted-artifacts
echo "true" >/var/workdir/cachi2/.skip-trusted-artifacts
echo -n "${SOURCE_ARTIFACT}" >$( results.SOURCE_ARTIFACT.path)
echo -n "" >$( results.CACHI2_ARTIFACT.path)
echo -n "${SOURCE_ARTIFACT}" >$(results.SOURCE_ARTIFACT.path)
echo -n "" >$(results.CACHI2_ARTIFACT.path)
fi
- name: use-trusted-artifact
image: quay.io/redhat-appstudio/build-trusted-artifacts:latest@sha256:4e39fb97f4444c2946944482df47b39c5bbc195c54c6560b0647635f553ab23d
Expand Down

0 comments on commit 4b24499

Please sign in to comment.