Skip to content

Commit

Permalink
print docker build log to GHA log if build fails
Browse files Browse the repository at this point in the history
  • Loading branch information
georgemccabe committed Feb 18, 2022
1 parent 6b2134d commit 418ebe7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/jobs/build_docker_image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,7 @@ time_command docker build -t ${DOCKERHUB_TAG} \
--build-arg SOURCE_BRANCH \
--build-arg MET_BASE_IMAGE \
-f $DOCKERFILE_PATH ${GITHUB_WORKSPACE}
if [ $? != 0 ]; then
cat ${GITHUB_WORKSPACE}/docker_build.log
exit 1
fi

0 comments on commit 418ebe7

Please sign in to comment.