This commit is contained in:
Bozhidar Slaveykov 2023-11-25 23:41:07 +02:00
parent 2e5c936659
commit cadce8d19d
5 changed files with 72 additions and 3 deletions

View file

@ -1,4 +1,4 @@
name: Compile PhyrePanel Packages
name: Compile PhyrePanel NGINX Packages
on:
push:

View file

@ -0,0 +1,41 @@
name: Compile PhyrePanel PHP Packages
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- name: Compile PHP
run: |
cd compilators/debian/php
chmod 775 ./php-compile.sh
./php-compile.sh
ls
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_user_name: Cloud Vision Bot
commit_user_email: bobicloudvision@gmail.com
commit_author: Cloud Vision Bot <bobicloudvision@gmail.com>
commit_message: Upload compiled packages [BOT]
repository: ./compilators/debian/php/dist
#skip_checkout: true
#push_options: '--force'
#skip_fetch: true
#create_branch: true
# status_options: '--untracked-files=no'

View file

@ -0,0 +1,28 @@
#!/bin/bash
MAIN_DIR=$(pwd)
# Install dependencies
sudo apt-get update -y
sudo apt-get install libzip-dev libonig-dev openssl zip unzip git ibgmp-dev gmp-dev libcurl4-openssl-dev libsqlite3-dev libxml2-dev pkg-config build-essential dpkg-dev debhelper autotools-dev libgeoip-dev libssl-dev libpcre3-dev zlib1g-dev -y
# Download PHP source
wget http://de2.php.net/distributions/php-8.2.0.tar.gz
tar -zxvf php-8.2.0.tar.gz
cd php-8.2.0
# Configure PHP
sudo ./configure --prefix=/usr/local/phyre/php \
--with-libdir=lib/$(arch)-linux-gnu \
--enable-fpm --with-fpm-user=admin --with-fpm-group=admin \
--with-openssl \
--with-mysqli \
--with-gettext \
--with-curl \
--with-zip \
--enable-mbstring
# Compile PHP
sudo make
sudo make install

View file

@ -1,6 +1,6 @@
# Generate a random password
random_password="wfawfafwafwafaw"
email="wfafwafwa@abv.bg"
random_password="$(openssl rand -base64 32)"
email="email1@phyrepanel.com"
# Create the new phyreweb user
/usr/sbin/useradd "phyreweb" -c "$email" --no-create-home