Обновить .gitea/workflows/wf_full.yaml
This commit is contained in:
parent
4ae36fcc13
commit
93927be6b3
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user