Update README.md

This commit is contained in:
2022-09-27 20:24:46 +02:00
3 changed files with 57 additions and 1 deletions

54
.github/workflows/build.yml vendored Normal file
View File

@@ -0,0 +1,54 @@
name: ci
on:
push:
branches:
- 'master'
- '8.1'
- '8.0'
- '7.4'
- '7.2'
pull_request:
branches:
- 'master'
- '8.1'
- '8.0'
- '7.4'
- '7.2'
env:
#BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
BUILDKIT_IMAGE: jkaninda/laravel-php-fpm
jobs:
docker:
runs-on: ubuntu-latest
steps:
-
name: Set environment for branch
run: |
set -x
if [[ $GITHUB_REF == 'refs/heads/master' ]]; then
echo "TAG_NAME=latest" >> "$GITHUB_ENV"
echo "runs-on: master branch"
else
echo "TAG_NAME=${{ github.head_ref || github.ref_name }}" >> "$GITHUB_ENV"
echo "runs-on: ${{ github.head_ref || github.ref_name }} branch"
fi
-
name: Set up QEMU
uses: docker/setup-qemu-action@v2
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v3
with:
push: true
tags: "${{env.BUILDKIT_IMAGE}}:${{env.TAG_NAME}}"

View File

@@ -1,4 +1,4 @@
FROM php:8.1-fpm
FROM php:8.1.9-fpm
ARG WORKDIR=/var/www/html
ENV DOCUMENT_ROOT=${WORKDIR}
ENV LARAVEL_PROCS_NUMBER=1

View File

@@ -18,6 +18,8 @@
* OpenSSL PHP Extension
* XML PHP Extension
* PDO PHP Extension
* PDO Mysql
* PDO Pgsql
* Rdkafka PHP Extension
* Redis PHP Extension
* Mbstring PHP Extension