Skip to content

Add NGINX Build and flexible configuration for fast cgi #49

Add NGINX Build and flexible configuration for fast cgi

Add NGINX Build and flexible configuration for fast cgi #49

Workflow file for this run

name: Docker
on:
push:
branches: [ master ]
# Publish semver tags as releases.
tags: [ '*.*.*' ]
pull_request:
branches: [ master ]
env:
# github.repository as <account>/<repo>
IMAGE_NAME: ${{ github.repository }}
jobs:
Build:
runs-on: 'ubuntu-latest'
container:
image: 'byjg/k8s-ci:latest'
options: --privileged -v /tmp/z:/var/lib/containers
strategy:
matrix:
include:
- php-version: "8.3"
architeture: "arm64,amd64"
- php-version: "8.2"
architeture: "arm64,amd64"
- php-version: "8.1"
architeture: "arm64,amd64"
steps:
- uses: actions/checkout@v4
- name: Install requirements
run: pip install -r requirements.txt
- name: Login repository
run: buildah login --username ${{ secrets.DOCKER_REGISTRY_USER }} --password ${{ secrets.DOCKER_REGISTRY_TOKEN }} ${{ secrets.DOCKER_REGISTRY }}
- name: Building and Push PHP
run: python3 ./build.py ${{ matrix.php-version }} --arch ${{ matrix.architeture }} --build-base --build-cli --build-fpm --build-fpm-apache --build-fpm-nginx --push --debug
if: github.event_name != 'pull_request'
- name: Building PHP
run: python3 ./build.py ${{ matrix.php-version }} --arch ${{ matrix.architeture }} --build-base --build-cli --build-fpm --build-fpm-apache --build-fpm-nginx --debug
if: github.event_name == 'pull_request'
Documentation:
if: github.ref == 'refs/heads/master'
needs: Build
uses: byjg/byjg.github.io/.github/workflows/add-doc.yaml@master
with:
folder: devops
project: ${{ github.event.repository.name }}
secrets: inherit