Skip to content

Commit

Permalink
fix: lost throws
Browse files Browse the repository at this point in the history
  • Loading branch information
diomalta committed Dec 22, 2023
1 parent cb9e8d8 commit f6d0727
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/deploy
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,16 @@ then
fi

log_info "Building docker image"
docker build --pull -t $DOCKER_IMAGE .${PATH_DOCKERFILE}

throw "Error on build docker image"
if ! docker build --pull -t $DOCKER_IMAGE .${PATH_DOCKERFILE}
then
throw "Error on build docker image"
fi

log_info "Pushing docker image"
docker push $DOCKER_IMAGE

throw "Error on push docker image"
if ! docker push $DOCKER_IMAGE
then
throw "Error on push docker image"
fi

log_success "Docker image pushed"
echo $DOCKER_IMAGE

0 comments on commit f6d0727

Please sign in to comment.