action
This commit is contained in:
parent
ddfa246fc1
commit
89a2d0883b
11
.gitea/workflows/dotnet.yaml
Normal file
11
.gitea/workflows/dotnet.yaml
Normal 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
|
11
.gitea/workflows/frankenphp.yaml
Normal file
11
.gitea/workflows/frankenphp.yaml
Normal 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
|
11
.gitea/workflows/php-qa.yaml
Normal file
11
.gitea/workflows/php-qa.yaml
Normal 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
|
28
.gitea/workflows/workflow-docker.yaml
Normal file
28
.gitea/workflows/workflow-docker.yaml
Normal 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 }}
|
@ -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
|
Loading…
x
Reference in New Issue
Block a user