add workflow and docker file
This commit is contained in:
parent
7f90c9a150
commit
53e295ae3a
23
.gitea/workflows/build.yaml
Normal file
23
.gitea/workflows/build.yaml
Normal 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
8
.idea/.gitignore
generated
vendored
Normal 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
19
Dockerfile
Normal 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
|
Loading…
x
Reference in New Issue
Block a user