PhyrePanel-mirror/.drone.yml
2024-05-14 19:42:51 +03:00

22 lines
827 B
YAML

---
kind: pipeline
name: Docker - Quick Test
steps:
- name: run
image: bobicloudvision/phyre-panel:latest
environment:
DEBIAN_FRONTEND: noninteractive
commands:
- MAIN_REPO_DIR=$(pwd)
- apt-get install -y rsync
- cp /usr/local/phyre/web/phyre-config.ini /usr/local/phyre/phyre-config.ini.bak
- rm -rf /usr/local/phyre/web
- cp -r $MAIN_REPO_DIR/web /usr/local/phyre/web
- cp /usr/local/phyre/phyre-config.ini.bak /usr/local/phyre/web/phyre-config.ini
- cd /usr/local/phyre/web/
- ls -la
- wget https://getcomposer.org/download/latest-stable/composer.phar
- COMPOSER_ALLOW_SUPERUSER=1 phyre-php composer.phar install
- phyre-php artisan phyre:set-ini-settings APP_ENV "local"
- phyre-php artisan migrate
- phyre-php artisan test