Skip to content

Commit

Permalink
containers: Only ./test if container build specific test script exists
Browse files Browse the repository at this point in the history
  • Loading branch information
vorburger committed Oct 19, 2024
1 parent 1183844 commit 5be9ba1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion container/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ build() {
docker build -t "$3" -f "$1"/"$2" "$1"/

# Testing should never depend on user presence SK touch, so we clear SSH_AUTH_SOCK
SSH_AUTH_SOCK="" "$1"/test
if [ -f "$1"/test ]; then
SSH_AUTH_SOCK="" "$1"/test
fi
}

# Directory Dockerfile Image Tag Name
Expand Down

0 comments on commit 5be9ba1

Please sign in to comment.