Debug Pipeline Failed

This commit is contained in:
Dillon
2023-05-08 12:20:10 +08:00
parent 8347b2c1db
commit d09a8a8b8d
+4 -30
View File
@@ -1,45 +1,19 @@
image: php:7.4
image: lorisleiva/laravel-docker:7.4
stages:
- deploy
before_script:
- apt-get update -yqq
- apt-get install -yqq
- apt-get install -y libonig-dev
- apt-get install -y libxml2-dev
- apt-get install -y libzip-dev
- apt-get install -y libgd-dev
- apt-get install -y libgd-dev
# Install PDO MySQL extension
- docker-php-ext-install pdo_mysql
#install php dependencies
- docker-php-ext-install mbstring xml zip gd
# Install composer package manager
- curl --location --output /usr/local/bin/composer https://getcomposer.org/download/latest-stable/composer.phar
- chmod +x /usr/local/bin/composer
# Install MySQL client
- apt-get install -y default-mysql-client
#install node js
- apt-get update && apt-get install -y nodejs npm
#install gulp Js
- npm install -g gulp-cli
- apt-get install -y python3
#jobs
#deploy
deploy:
stage: deploy
script:
- composer install
- npm install
- gulp build
- vendor/bin/vapor deploy production --message="$CI_COMMIT_MESSAGE"
- composer install
- vapor deploy production --message="$CI_COMMIT_MESSAGE"
only:
- test