Skip to content

Commit

Permalink
Merge pull request #21 from devilbox/release-0.12
Browse files Browse the repository at this point in the history
Streamline
  • Loading branch information
cytopia committed Dec 10, 2022
2 parents 427af28 + 5a68e89 commit 73b8a74
Show file tree
Hide file tree
Showing 12 changed files with 301 additions and 117 deletions.
3 changes: 3 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
github: [cytopia]
patreon: devilbox
2 changes: 1 addition & 1 deletion .github/workflows/params.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
with:
repository_default_branch: master
branches: master
num_latest_tags: 1
num_latest_tags: 0
if: github.event_name == 'schedule'

- name: "[DEBUG] Show settings'"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ TAG = latest
NAME = PHP
VERSION = 8.1
IMAGE = devilbox/php-fpm-$(VERSION)
DIR = .
DIR = Dockerfiles
FILE = Dockerfile
DOCKER_TAG = $(TAG)
ARCH = linux/amd64

# Makefile.lint overwrites
FL_IGNORES = .git/,.github/,tests/,data/
FL_IGNORES = .git/,.github/,tests/,Dockerfiles/data/
SC_IGNORES = .git/,.github/,tests/


Expand Down Expand Up @@ -92,7 +92,7 @@ _test-integration:
.PHONY: update-readme
update-readme:
cat "./README.md" \
| perl -0 -pe "s/<!-- modules -->.*<!-- \/modules -->/<!-- modules -->\n$$(./tests/get-modules.sh $(IMAGE) $(NAME) $(VERSION) $(DOCKER_TAG) $(ARCH))\n<!-- \/modules -->/s" \
| perl -0 -pe "s#<!-- modules -->.*<!-- \/modules -->#<!-- modules -->\n$$(./tests/get-modules.sh $(IMAGE) $(NAME) $(VERSION) $(DOCKER_TAG) $(ARCH))\n<!-- \/modules -->#s" \
> "./README.md.tmp"
yes | mv -f "./README.md.tmp" "./README.md"
git diff --quiet || { echo "Build Changes"; git diff; git status; false; }
382 changes: 273 additions & 109 deletions README.md

Large diffs are not rendered by default.

25 changes: 21 additions & 4 deletions tests/get-modules.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,26 @@ MODULES="$( docker run --rm -t --platform "${ARCH}" --entrypoint=php "${IMAGE}:$
| sort -u -f
)"

echo "| Module | Built-in |"
echo "|--------------|-----------|"
echo "| Extension | Built-in |"
echo "|--------------------------------|-----------|"
echo "${MODULES}" | while read -r line; do
line="$( echo "${line}" | sed 's/\r//g' | xargs )"
printf "| %-12s | ✔ |\n" "${line}"
name="$( printf "%s" "${line}" )"
nick="$( echo "${name}" | awk '{print tolower($0)}' | sed 's/\r//g' | xargs )"
link="$( echo "[${name}][lnk_${nick}]" | sed 's/\r//g' | xargs )"
if [ "${nick}" = "core" ] || [ "${nick}" = "standard" ]; then
continue
fi
printf "| %-30s | ✓ |\n" "${link}"
done
echo

echo "${MODULES}" | while read -r line; do
name="$( printf "%s" "${line}" )"
nick="$( echo "${name}" | awk '{print tolower($0)}' | sed 's/\r//g' | xargs )"
link="$( printf "%s" "[lnk_${nick}]" | sed 's/\r//g' | xargs )"
addr="$( printf "%s: %s" "${link}" "https://github.com/devilbox/docker-php-fpm/tree/master/php_modules/${nick}" | sed 's/\r//g' | xargs )"
if [ "${nick}" = "core" ] || [ "${nick}" = "standard" ]; then
continue
fi
printf "%s\n" "${addr}"
done

0 comments on commit 73b8a74

Please sign in to comment.