Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
wip: add debug step
  • Loading branch information
Greg Bowler committed Feb 15, 2023
commit 57f70b21cd4e028b60348ba9b7636fe9c0152427
13 changes: 10 additions & 3 deletions php-build.bash
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,16 @@ echo "Building PHP $ACTION_PHP_VERSION with extensions: $ACTION_PHP_EXTENSIONS .
# need to re-build, and the `docker build` step should use the cached layers of
# what has just been pulled.
echo "$dockerfile" > Dockerfile-php-build
echo "Dockerfile:" >> output.log 2>&1
echo "$dockerfile" >> output.log 2>&1
docker build --tag "$docker_tag" --cache-from "$docker_tag" --file Dockerfile-php-build . >> output.log 2>&1
if [ ACTIONS_RUNNER_DEBUG = "true" ]
then
echo "Dockerfile:"
echo "$dockerfile"
echo docker build --tag "$docker_tag" --cache-from "$docker_tag" --file Dockerfile-php-build .
docker build --tag "$docker_tag" --cache-from "$docker_tag" --file Dockerfile-php-build .
else
docker build --tag "$docker_tag" --cache-from "$docker_tag" --file Dockerfile-php-build . >> output.log 2>&1
fi

# Update the user's repository with the customised docker image, ready for the
# next Github Actions run.
if ! docker push "$docker_tag" >> output.log 2>&1; then
Expand Down