Обновить .gitea/workflows/wf_full.yaml
Some checks failed
Full building alt images / build-process (push) Successful in 3m12s
Full building alt images / test-process (push) Failing after 5m5s
Full building alt images / finish_process (push) Successful in 59s

This commit is contained in:
Надежда Федорова 2024-04-15 17:04:10 +03:00
parent 4ae36fcc13
commit 93927be6b3

View File

@ -106,10 +106,10 @@ jobs:
then test=$(cat ${{ gitea.workspace }}/org/$ORG/$IM/test); \
else test=''; fi; \
echo "test script=$test"; \
if [[ $test != '' ]]; then podman run --rm --entrypoint="/bin/sh" $URL/$REPO/$ORG/$IM:$BR -c "$test" 2>&1 | tee -a $IM.log; \
if [[ $test != '' ]]; then podman run --rm --entrypoint="/bin/sh" $URL/$REPO/$ORG/$IM:$BR -c "$test" 2> $IM.log || echo "error"; \
else \
if [[ $IM = 'distroless-true' ]]; then podman run --rm $URL/$REPO/$IM:$BR true 2>&1 | tee -a $IM.log; fi; \
if [[ $IM = 'distroless-gotop' ]]; then podman run --rm $URL/$REPO/$IM:$BR --version 2>&1 | tee -a $IM.log; fi; \
if [[ $IM = 'distroless-true' ]]; then podman run --rm $URL/$REPO/$IM:$BR true 2> $IM.log || echo "error"; fi; \
if [[ $IM = 'distroless-gotop' ]]; then podman run --rm $URL/$REPO/$IM:$BR --version 2> $IM.log || echo "error"; fi; \
fi; \
echo "podman rmi --all"; \
podman rmi --all; \
@ -126,7 +126,7 @@ jobs:
if: ${{ env.ERR == '' }}
run: |
issueid=$(curl -X 'GET' "$URL/api/v1/repos/$REPO/gitea-image-forge/issues?state=all&type=issues&page=1&limit=1&token=$T" -H 'accept: application/json' -s | jq '.[].number' -r)
body="Testing images finish with some errors: ${{ env.ERR }}."
body="Testing images finish with some errors. ${{ env.ERR }}"
curl -X 'POST' "$URL/api/v1/repos/$REPO/gitea-image-forge/issues/$issueid/comments?token=$T" -H 'accept: application/json' -H 'Content-Type: application/json' -d "{ \"body\": \"$body\" }" -s
echo "notification about test error is sent to issue $issueid"
env: