Skip to content
Snippets Groups Projects
Commit df39000e authored by Alexandra's avatar Alexandra
Browse files

feat: do not start building image if tag.pacakge not present

parent 6622c05a
Branches
Tags
No related merge requests found
...@@ -5,4 +5,8 @@ set -e ...@@ -5,4 +5,8 @@ set -e
TAG=${1:-latest} TAG=${1:-latest}
REGISTRY=${2:-theia} REGISTRY=${2:-theia}
docker build --build-arg "version=$TAG" . -t "$REGISTRY:$TAG" --no-cache if test -f "$TAG.package.json"; then
\ No newline at end of file docker build --build-arg "version=$TAG" . -t "$REGISTRY:$TAG" --no-cache
else
echo "$TAG.package.json: file does not exist"
fi
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment