This commit is contained in:
parent
3f8437e20d
commit
965a5ff202
@ -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
|
- curl https://api.github.com/repos/magicbug/cloudlog/releases/latest | jq -r '.zipball_url' | xargs -I{} curl -L {} --output cloudlog.zip
|
||||||
- unzip cloudlog.zip
|
- unzip cloudlog.zip
|
||||||
- mv $(find . -name 'magicbug-Cloudlog-*' -type d -prune -print) cloudlog
|
- mv $(find . -name 'magicbug-Cloudlog-*' -type d -prune -print) cloudlog
|
||||||
|
- sed -i "s/define('ENVIRONMENT', 'development')/define('ENVIRONMENT', 'production')/" cloudlog/index.php
|
||||||
|
|
||||||
- name: kaniko
|
- name: kaniko
|
||||||
image: plugins/kaniko
|
image: plugins/kaniko
|
||||||
|
@ -3,8 +3,7 @@ FROM php:8.2-fpm
|
|||||||
COPY docker-php-entrypoint /usr/local/bin/
|
COPY docker-php-entrypoint /usr/local/bin/
|
||||||
|
|
||||||
RUN chmod +x /usr/local/bin/docker-php-entrypoint && \
|
RUN chmod +x /usr/local/bin/docker-php-entrypoint && \
|
||||||
docker-php-ext-install mysqli && \
|
docker-php-ext-install mysqli
|
||||||
docker-php-ext-enable mysqli
|
|
||||||
|
|
||||||
USER www-data
|
USER www-data
|
||||||
|
|
||||||
|
@ -1,7 +1,17 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -e
|
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`
|
# first arg is `-f` or `--some-option`
|
||||||
if [ "${1#-}" != "$1" ]; then
|
if [ "${1#-}" != "$1" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user