diff --git a/tasks/create-pyxis-image/create-pyxis-image.yaml b/tasks/create-pyxis-image/create-pyxis-image.yaml index a1703ea96..4b291d435 100644 --- a/tasks/create-pyxis-image/create-pyxis-image.yaml +++ b/tasks/create-pyxis-image/create-pyxis-image.yaml @@ -157,7 +157,7 @@ spec: fi # Save the OCI manifest locally, to pass to a script to create the pyxis entry - MANIFEST_FILE="$(workspaces.data.path)/oras-manifest-fetch.json" + MANIFEST_FILE="$(workspaces.data.path)/$(dirname "$(params.snapshotPath)")/oras-manifest-fetch.json" oras manifest fetch \ --registry-config "$AUTH_FILE" \ "${ORAS_ARGS[@]}" \ diff --git a/tasks/create-pyxis-image/tests/mocks.sh b/tasks/create-pyxis-image/tests/mocks.sh index 10d7b840a..e3941ad1e 100644 --- a/tasks/create-pyxis-image/tests/mocks.sh +++ b/tasks/create-pyxis-image/tests/mocks.sh @@ -9,7 +9,7 @@ function create_container_image() { # e.g. 0001, 0002, 0003... echo The image id is $(awk 'END{printf("%04i", NR)}' $(workspaces.data.path)/mock_create_container_image.txt) - if [[ "$*" != "--pyxis-url https://pyxis.preprod.api.redhat.com/ --certified false --tags "*" --is-latest false --verbose --oras-manifest-fetch /workspace/data/oras-manifest-fetch.json --name "*" --media-type my_media_type+gzip --digest "*" --architecture-digest "*" --architecture "*" --rh-push "* ]] + if [[ "$*" != "--pyxis-url https://pyxis.preprod.api.redhat.com/ --certified false --tags "*" --is-latest false --verbose --oras-manifest-fetch ${MANIFEST_FILE} --name "*" --media-type my_media_type+gzip --digest "*" --architecture-digest "*" --architecture "*" --rh-push "* ]] then echo Error: Unexpected call echo Mock create_container_image called with: $*