fix command run-test
Some checks failed
Building alt images / build-process (push) Successful in 4m45s
Building alt images / test-process (push) Successful in 1m29s
Full building alt images / test-process (push) Has been cancelled
Full building alt images / build-process (push) Has been cancelled

This commit is contained in:
Nadezhda Fedorova 2024-09-27 16:47:11 +03:00 committed by Надежда Федорова
parent 4f1a12d561
commit 7fea91a372
2 changed files with 2 additions and 5 deletions

View File

@ -24,10 +24,7 @@ do
then imgpath="$2-$1/$IM:latest"
fi
entrypoint='/usr/bin/sh'
if [[ $1 == 'p10' ]]
then entrypoint='/bin/sh'
fi
entrypoint='/bin/sh'
command="echo empty_command"
if [[ $test != '' ]]; then

View File

@ -123,7 +123,7 @@ jobs:
if: ${{ needs.build-process.outputs.test != '' }}
continue-on-error: true
run: |
if [[ $BR = 'p10' ]]; then podman run --rm --entrypoint="/bin/sh" $URL/$IM:$BR -c "$TEST"; else podman run --rm --entrypoint="/usr/bin/sh" $URL/$IM:$BR -c "$TEST"; fi
if [[ "$IM" == *"k8s"* ]]; then echo "skip tests for k8s images"; else podman run --rm --entrypoint="/bin/sh" $URL/$IM:$BR -c "$TEST"; fi
env:
IM: ${{ needs.build-process.outputs.image }}
BR: ${{ needs.build-process.outputs.branch }}