Skip to content

Commit

Permalink
Merge pull request #11 from OriHoch/patch-1
Browse files Browse the repository at this point in the history
prevent failure of script due to missing permissions to push Docker image
  • Loading branch information
g105b authored Nov 9, 2022
2 parents 504f80e + 99ae2f6 commit cee5b9f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion php-build.bash
Original file line number Diff line number Diff line change
Expand Up @@ -110,4 +110,7 @@ echo "$dockerfile" >> output.log 2>&1
docker build --tag "$docker_tag" --cache-from "$docker_tag" --file Dockerfile-php-build . >> output.log 2>&1
# Update the user's repository with the customised docker image, ready for the
# next Github Actions run.
docker push "$docker_tag" >> output.log 2>&1
if ! docker push "$docker_tag" >> output.log 2>&1; then
echo "WARNING: Failed to push Docker image to \"$docker_tag\", this is probably due to missing permissions on GitHub." >> output.log 2>&1
echo "Will continue as this is just an optimization to improve speed of next build." >> output.log 2>&1
fi

0 comments on commit cee5b9f

Please sign in to comment.