Repository navigation
feat: add php 8.1.34 alpine3.22 build from ghcr base - #4
Merged
Merged
Conversation
Build 8.1 from ghcr.io/sun-asterisk-research/php:8.1.34-nginx-alpine3.22 pinned by digest, via a dedicated versions_8.1.yml: one exact tag (8.1.34-alpine3.22), linux/amd64 only, no Docker Hub step. 8.1.9 is dropped from versions.yml. Generator: new base_image, base_image_sha256, exact_tags_only and dockerhub_push keys, validated before anything is written or removed. base_image is required, and base_image_sha256 is required when exact_tags_only is true. Other versions keep their output; their workflows only gain 'if: true' on the Docker Hub steps. Makefile: fix the clean loop (missing ls) so make all removes stale version directories, stop on the first failing versions file instead of masking it, and validate every versions file before cleaning.
Exact-tag builds publish to ghcr with GITHUB_TOKEN, so the 8.1 workflow now declares read-only contents at the top and packages: write on the docker job instead of relying on the org default.
Contributor
Author
🚫 Chặn merge: push lên branch nào cũng ghi đè được tag
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
php-dev:8.1-*runs PHP 8.1.9, which is vulnerable to CVE-2026-109618 and CVE-2026-109619 (PHP2Shell, unauthenticated RCE). sun-asterisk-research/docker-php#6 published patchedphp:8.1.34-*-alpine3.22images. This PR builds the CI image for 8.1 on top of them, so app CI can run the same PHP and phpredis as production.What changes
versions_8.1.ymlbuilds8.1/alpine3.22fromghcr.io/sun-asterisk-research/php:8.1.34-nginx-alpine3.22, pinned by digest (sha256:52414238…e998). 8.1.9 is dropped fromversions.yml.base_imageis required.base_image_sha256is required withexact_tags_only.exact_tags_onlypublishes only8.1.34-alpine3.22.dockerhub_push: falsedrops the Docker Hub step.platformslimits the build tolinux/amd64.latest,alpine,bullseyeandbuster.alpine3.15,alpine3.16and8-alpine3.15.8.1and8.1.9families.8is still built from 8.2.cleanloop was missingls, so it never ran. It runs now.makeinstead of being masked.sha256:-prefixed digest is rejected with a clear message.contents: readat the top level, andcontents: readpluspackages: writeon the docker job.if: trueon the Docker Hub steps, and they trigger on<minor>/**only, so they do not run.Verification (local, linux/amd64)
make allleaves a cleangit statuson two consecutive runs, under both mawk (ubuntu:24.04) and gawk.docker-php-ext-disable xdebug, xdebug is gone and pcov remains.make all, and no generated file is removed.Notes
8.1.34-alpine3.22, and the merge pushes it again. CI consumers must pin the digest from the master run, not the tag.deniedon the ghcr push would mean the package does not grant this repo write access.