Skip to content

Commit

Permalink
Show log from docke build
Browse files Browse the repository at this point in the history
  • Loading branch information
vmilosevic authored Oct 16, 2024
1 parent 040d06e commit aea0953
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/build-docker-images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ build_and_push() {
else
echo "Building image $image_name:$DOCKER_TAG"
docker build \
--progress=plain \
--build-arg GIT_SHA=$CURRENT_SHA \
--build-arg FROM_TAG=$DOCKER_TAG \
${from_image:+--build-arg FROM_IMAGE=$from_image} \
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ jobs:
run: |
# Output the image name
set pipefail
DOCKER_CI_IMAGE=$(.github/build-docker-images.sh | tail -n 1)
.github/build-docker-images.sh | tee docker.log
DOCKER_CI_IMAGE=$(tail -n 1 docker.log)
echo "DOCKER_CI_IMAGE $DOCKER_CI_IMAGE"
echo "docker-image=$DOCKER_CI_IMAGE" >> "$GITHUB_OUTPUT"
Expand Down

0 comments on commit aea0953

Please sign in to comment.