feat: add php 7.4 #4
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
| # NOTE: This file was generated via generate.sh. Don't edit it directly | |
| name: 'PHP 7.4' | |
| on: | |
| pull_request: | |
| paths: | |
| - 7.4/** | |
| push: | |
| paths: | |
| - 7.4/** | |
| defaults: | |
| run: | |
| shell: 'bash -Eeuo pipefail -x {0}' | |
| jobs: | |
| verify-templating: | |
| name: Verify templating | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Generate | |
| run: make all | |
| - name: Check Git status | |
| run: | | |
| test -z "$(git status --short)" | |
| docker: | |
| name: ${{ matrix.target }} | |
| runs-on: ubuntu-latest | |
| needs: | |
| - verify-templating | |
| strategy: | |
| matrix: | |
| target: | |
| [ | |
| "7_4_33-cli-bullseye", | |
| "7_4_33-fpm-bullseye", | |
| "7_4_33-nginx-bullseye", | |
| "7_4_33-cli-buster", | |
| "7_4_33-fpm-buster", | |
| "7_4_33-nginx-buster", | |
| "7_4_33-cli-alpine3_16", | |
| "7_4_33-fpm-alpine3_16", | |
| "7_4_33-nginx-alpine3_16", | |
| ] | |
| env: | |
| DOCKER_HUB_PUSH: ${{ (secrets.DOCKER_HUB_USERNAME && secrets.DOCKER_HUB_TOKEN) && 'true' || 'false' }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| - name: Set up QEMU | |
| uses: docker/setup-qemu-action@v2 | |
| with: | |
| platforms: arm,arm64 | |
| - name: Set up buildx | |
| uses: docker/setup-buildx-action@v2 | |
| - name: Login to Docker Hub | |
| uses: docker/login-action@v2 | |
| with: | |
| username: ${{ secrets.DOCKER_HUB_USERNAME }} | |
| password: ${{ secrets.DOCKER_HUB_TOKEN }} | |
| if: ${{ env.DOCKER_HUB_PUSH == 'true' }} | |
| - name: Login to GitHub Container Registry | |
| uses: docker/login-action@v2 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.repository_owner }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Build and push to GitHub Container Registry | |
| uses: docker/bake-action@v2 | |
| env: | |
| REGISTRY: ghcr.io | |
| REPO: ${{ github.repository_owner }}/php | |
| with: | |
| targets: ${{ matrix.target }} | |
| set: | | |
| *.platform=linux/amd64,linux/arm,linux/arm64 | |
| push: ${{ github.event_name == 'push' }} | |
| - name: Build and push to DockerHub | |
| uses: docker/bake-action@v2 | |
| with: | |
| targets: ${{ matrix.target }} | |
| set: | | |
| *.platform=linux/amd64,linux/arm,linux/arm64 | |
| push: ${{ github.event_name == 'push' }} | |
| if: ${{ env.DOCKER_HUB_PUSH == 'true' }} |