add workflow and docker file

This commit is contained in:
Constantin Simonis 2025-01-10 15:24:30 +01:00
parent 7f90c9a150
commit 53e295ae3a
Signed by: csimonis
GPG Key ID: 758DD9C506603183
3 changed files with 50 additions and 0 deletions

View File

@ -0,0 +1,23 @@
name: build
on:
pull_request:
types:
- closed
branches:
- main
jobs:
build:
runs-on: remote
steps:
- uses: https://git.simonis.lol/actions/checkout@v4
- uses: https://git.simonis.lol/actions/login@v1
with:
registry: git.simonis.lol
username: ${{ vars.DOCKER_USER }}
password: ${{ vars.DOCKER_PW }}
- name: build
run: docker build -t git.simonis.lol/sites/abiball:latest .
- name: push
run: docker push git.simonis.lol/sites/abiball:latest

8
.idea/.gitignore generated vendored Normal file
View File

@ -0,0 +1,8 @@
# Default ignored files
/shelf/
/workspace.xml
# Editor-based HTTP Client requests
/httpRequests/
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml

19
Dockerfile Normal file
View File

@ -0,0 +1,19 @@
FROM php:8.2-apache
COPY . /var/www/html/
RUN chown -R www-data:www-data /var/www/html
RUN apt-get update \
&& apt-get install -qq -y --no-install-recommends cron nano locales coreutils libicu-dev libpng-dev libxml2-dev libzip-dev libonig-dev libxslt-dev;
RUN echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && locale-gen
RUN curl -sSk https://getcomposer.org/installer | php -- --disable-tls && \
mv composer.phar /usr/local/bin/composer
RUN docker-php-ext-install pdo pdo_mysql mysqli gd opcache intl zip calendar dom mbstring zip gd xsl && a2enmod rewrite
RUN pecl install apcu && docker-php-ext-enable apcu
WORKDIR /var/www/html
RUN composer install --optimize-autoloader --no-suggest --no-progress