Skip to content

Commit

Permalink
chore: code tags
Browse files Browse the repository at this point in the history
  • Loading branch information
carslen committed Oct 24, 2024
1 parent ec1628e commit 844021b
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions scripts/failure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,10 @@ echo "This script will fail"
images=("alpine" "gibtsnicht:1.12.123")

for image in "${images[@]}"; do
echo "Pull $image"
error=$(docker pull "$image" 2>&1) || #echo -e "Failed to pull image: $image\n\nDetailed error message:\n$error" >>"$GITHUB_STEP_SUMMARY"
error=$(docker pull "$image" 2>&1) || echo -e "Failed to pull image: $image\n\nDetailed error message:\n<code>$error</code>" >>"$GITHUB_STEP_SUMMARY"

if [ "${PIPESTATUS[0]}" != "0" ]; then
echo -e "Failed to pull image: $image\n\nDetailed error message:\n$error" >>"$GITHUB_STEP_SUMMARY"
exit 1
fi
# if [ "${PIPESTATUS[0]}" != "0" ]; then
# echo -e "Failed to pull image: $image\n\nDetailed error message:\n$error" >>"$GITHUB_STEP_SUMMARY"
# exit 1
# fi
done

0 comments on commit 844021b

Please sign in to comment.