Compare commits

...

2 Commits

Author SHA1 Message Date
b79281d857 add ci
Some checks failed
Build and Push Docker Images / Build and Push Docker Images (push) Failing after 18s
2025-02-14 05:49:14 +05:00
7d4df39457 ai retarded 2025-02-14 05:44:20 +05:00
2 changed files with 47 additions and 5 deletions

View File

@ -1,7 +1,12 @@
# Increase max execution time
max_execution_time = 300
pid = /var/run/php-fpm.pid
error_log = /dev/stderr
emergency_restart_threshold = 10
emergency_restart_interval = 1m
process_control_timeout = 10s
# Increase process manager settings
; In www.conf or your pool configuration file
[www]
; Process manager settings
pm = dynamic
pm.max_children = 50
pm.start_servers = 5
@ -9,8 +14,8 @@ pm.min_spare_servers = 5
pm.max_spare_servers = 35
pm.max_requests = 500
# Increase request timeout
request_terminate_timeout = 300s
; Timeout settings
request_terminate_timeout = 300
[global]
include=etc/php-fpm.d/*.conf

View File

@ -0,0 +1,37 @@
name: Build and Push Docker Images
on:
push:
branches:
- main
- master
pull_request:
branches:
- main
- master
jobs:
docker:
name: Build and Push Docker Images
runs-on: builder
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Build Docker images
working-directory: .build/prod
run: docker compose build
- name: Login to Docker Registry
if: github.event_name != 'pull_request'
uses: docker/login-action@v2
with:
registry: ${{ vars.DOCKER_REGISTRY_URL }}
username: ${{ vars.DOCKER_REGISTRY_USER }}
password: ${{ secrets.DOCKER_REGISTRY_PASSWORD }}
- name: Push Docker images
if: github.event_name != 'pull_request'
working-directory: .build/prod
run: docker compose push