fix(ci): replace docker-based version extraction with grep
Some checks failed
Build MapleDeploy Coolify Image / build (push) Failing after 4s

The Docker-in-Docker volume mount fails in host execution mode
because $PWD resolves to the runner container path, not the host
path. Use grep to extract the version directly from constants.php.
This commit is contained in:
rosslh 2026-02-11 21:30:27 -05:00
parent ed49aed474
commit 11f3ba7932

View file

@ -20,7 +20,7 @@ jobs:
- name: Get version - name: Get version
id: version id: version
run: | run: |
VERSION=$(docker run --rm -v "$PWD:/app" -w /app php:8.2-alpine3.16 php bootstrap/getVersion.php) VERSION=$(grep -oP "'version' => '\K[^']+" config/constants.php)
echo "VERSION=${VERSION}" >> "$GITHUB_OUTPUT" echo "VERSION=${VERSION}" >> "$GITHUB_OUTPUT"
echo "Building version: ${VERSION}" echo "Building version: ${VERSION}"