This commit is contained in:
Adrien Beaudouin 2024-08-02 17:54:58 +02:00
parent ddfa246fc1
commit 89a2d0883b
5 changed files with 61 additions and 15 deletions

View File

@ -0,0 +1,11 @@
on:
push:
branches:
- main
jobs:
build:
uses: ./.gitea/workflows/workflow-docker.yaml
with:
image: okami101/dotnet-qa:8.0
dockerfile: dotnet-qa.dockerfile

View File

@ -0,0 +1,11 @@
on:
push:
branches:
- main
jobs:
build:
uses: ./.gitea/workflows/workflow-docker.yaml
with:
image: okami101/frankenphp:8.3
dockerfile: frankenphp-83.dockerfile

View File

@ -0,0 +1,11 @@
on:
push:
branches:
- main
jobs:
build:
uses: ./.gitea/workflows/workflow-docker.yaml
with:
image: okami101/php-qa:8.3
dockerfile: php-qa-83.dockerfile

View File

@ -0,0 +1,28 @@
name: Docker build
on:
workflow_call:
inputs:
image:
required: true
type: string
dockerfile:
required: true
type: string
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: docker/login-action@v3
with:
registry: ${{ vars.CONTAINER_REGISTRY }}
username: ${{ vars.CONTAINER_REGISTRY_USERNAME }}
password: ${{ secrets.CONTAINER_REGISTRY_PASSWORD }}
- uses: docker/build-push-action@v6
with:
context: .
file: ${{ inputs.dockerfile }}
push: true
tags: ${{ vars.CONTAINER_REGISTRY }}/${{ inputs.image }}

View File

@ -1,15 +0,0 @@
FROM php:8.3-apache
COPY --from=mlocati/php-extension-installer /usr/bin/install-php-extensions /usr/local/bin/
RUN install-php-extensions @composer opcache intl pdo_mysql pdo_pgsql
RUN cp $PHP_INI_DIR/php.ini-production $PHP_INI_DIR/php.ini; \
sed -i 's/memory_limit = 128M/memory_limit = 1G/' $PHP_INI_DIR/php.ini;
ENV APACHE_DOCUMENT_ROOT /app/public
RUN sed -ri -e 's!/var/www/html!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/sites-available/*.conf
RUN sed -ri -e 's!/var/www/!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/apache2.conf /etc/apache2/conf-available/*.conf
RUN a2enmod rewrite