Skip to content

Commit

Permalink
Wrap "docker build" with set -x / set +x
Browse files Browse the repository at this point in the history
Let's debug that nasty bug

See #33
  • Loading branch information
macbre authored Sep 5, 2023
1 parent a4d324f commit 96a9752
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ runs:
# https://docs.docker.com/develop/develop-images/build_enhancements/
# https://docs.docker.com/engine/reference/commandline/build/#specifying-external-cache-sources
set -x
>&0 docker build \
--file ${{ inputs.dockerfile }} \
--cache-from ${{ inputs.repository }}/${IMAGE_NAME}:latest \
Expand All @@ -107,6 +108,7 @@ runs:
--label org.opencontainers.image.source=${GITHUB_URL} \
--label org.opencontainers.image.revision=${GITHUB_SHA} \
${{ inputs.context }}
set +x
echo "::endgroup::"
Expand Down

0 comments on commit 96a9752

Please sign in to comment.