Skip to content

Commit

Permalink
[docker] exit early if build fails
Browse files Browse the repository at this point in the history
If the build fails, don't then attempt to run the container-which-wasn't-built
  • Loading branch information
shish committed Jan 19, 2025
1 parent 4362e78 commit 2ca726f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions .devcontainer/build.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/bin/sh
set -eu
cd $(dirname $0)/../
docker run --rm -v ${PWD}:/app $(docker build -q -f .devcontainer/Dockerfile .)
1 change: 1 addition & 0 deletions .devcontainer/run.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/bin/sh
set -eu
cd $(dirname $0)/../
docker run --rm -ti -v ${PWD}:/app $(docker build -q . -f .devcontainer/Dockerfile) /bin/bash

0 comments on commit 2ca726f

Please sign in to comment.