Skip to content

Commit 3313e92

Browse files
committed
Allow to rerun build&test action
1 parent a0e87b6 commit 3313e92

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

build-and-test.sh

+9-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
#!/usr/bin/env bash
22

3-
set -xe
3+
set -eE -o functrace
4+
5+
failure() {
6+
local lineno=$1
7+
local msg=$2
8+
echo "Failed at $lineno: $msg"
9+
sudo rm user1999 -rf
10+
}
11+
trap 'failure ${LINENO} "$BASH_COMMAND"' ERR
412

513
docker buildx build --platform=linux/amd64 --load -t thecodingmachine/nodejs:${TAG} -f Dockerfile.${VARIANT} .
614

0 commit comments

Comments
 (0)