1
0
Fork 0

prod ready
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Torma Kristóf 2024-04-04 22:30:16 +02:00
parent 3f8437e20d
commit 965a5ff202
3 changed files with 13 additions and 3 deletions

View File

@ -12,6 +12,7 @@ steps:
- curl https://api.github.com/repos/magicbug/cloudlog/releases/latest | jq -r '.zipball_url' | xargs -I{} curl -L {} --output cloudlog.zip
- unzip cloudlog.zip
- mv $(find . -name 'magicbug-Cloudlog-*' -type d -prune -print) cloudlog
- sed -i "s/define('ENVIRONMENT', 'development')/define('ENVIRONMENT', 'production')/" cloudlog/index.php
- name: kaniko
image: plugins/kaniko

View File

@ -3,8 +3,7 @@ FROM php:8.2-fpm
COPY docker-php-entrypoint /usr/local/bin/
RUN chmod +x /usr/local/bin/docker-php-entrypoint && \
docker-php-ext-install mysqli && \
docker-php-ext-enable mysqli
docker-php-ext-install mysqli
USER www-data

View File

@ -1,7 +1,17 @@
#!/bin/sh
set -e
cp -r /var/www/cloudlog/* /var/www/html
shopt -s extglob
cp -r /var/www/cloudlog/!(backup|updates|uploads|application|images) /var/www/html
mkdir -p /var/www/html/images
cp -r /var/www/cloudlog/images/!(eqsl_card_images) /var/www/html/images
mkdir -p /var/www/html/application
cp -r /var/www/cloudlog/application/!(config|logs) /var/www/html/images
# first arg is `-f` or `--some-option`
if [ "${1#-}" != "$1" ]; then