Skip to content

ci(github-action): pin erhardtconsulting/images action to 1e630fe #210

ci(github-action): pin erhardtconsulting/images action to 1e630fe

ci(github-action): pin erhardtconsulting/images action to 1e630fe #210

name: "PHP 8.4.x: Build Container Image / Pull Request"
on:
pull_request:
branches:
- main
paths:
- 'base-php/8.4.Dockerfile'
- '.github/workflows/build-container.yml'
- '.github/workflows/build-base-php-8.4-pr.yml'
permissions:
contents: read
packages: write
jobs:
get-version:
runs-on: ubuntu-24.04
outputs:
php: ${{ steps.php_version.outputs.PHP_VERSION }}
steps:
- name: Checkout repository
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
- name: Get PHP version
id: php_version
run: |
echo "PHP_VERSION=$(grep -E '^FROM docker.io/library/php:[0-9]+\.[0-9]+\.[0-9]+' base-php/8.4.Dockerfile | sed -E 's|.*php:([0-9]+\.[0-9]+\.[0-9]+).*|\1|')" >> $GITHUB_OUTPUT
call-build-workflow:
name: Build
needs: get-version
uses: erhardtconsulting/images/.github/workflows/build-container.yml@7434d28709f036ce0080204c50e2782bafd9a145 # main
with:
image: "base-php"
dockerfile: "8.4.Dockerfile"
tag: ${{ needs.get-version.outputs.php }}
push: false
push-docker: false
push-quay: false
secrets: inherit