This commit is contained in:
22
.drone.yml
22
.drone.yml
@@ -1,6 +1,6 @@
|
|||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
name: default
|
name: bogazici-api
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
branch:
|
branch:
|
||||||
@@ -15,13 +15,13 @@ steps:
|
|||||||
branch:
|
branch:
|
||||||
- develop
|
- develop
|
||||||
commands:
|
commands:
|
||||||
- apt-get update && apt-get install -y git unzip curl libzip-dev default-mysql-client
|
- apt-get update && apt-get install -y git unzip curl libzip-dev libicu-dev default-mysql-client
|
||||||
- docker-php-ext-install pdo_mysql zip
|
- docker-php-ext-install pdo_mysql zip intl
|
||||||
- curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
|
- curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
|
||||||
- cp .env.example .env || true
|
- cp .env.example .env || true
|
||||||
- composer install --no-interaction --prefer-dist --optimize-autoloader
|
- composer install --no-interaction --prefer-dist --optimize-autoloader
|
||||||
- php artisan key:generate --force || true
|
- php artisan key:generate --force || true
|
||||||
- php artisan config:clear || true
|
- php artisan optimize:clear || true
|
||||||
- php artisan test || true
|
- php artisan test || true
|
||||||
|
|
||||||
- name: deploy-test
|
- name: deploy-test
|
||||||
@@ -31,11 +31,12 @@ steps:
|
|||||||
- test
|
- test
|
||||||
settings:
|
settings:
|
||||||
host:
|
host:
|
||||||
from_secret: server_host
|
from_secret: SERVER_HOST
|
||||||
username:
|
username:
|
||||||
from_secret: server_user
|
from_secret: SERVER_USER
|
||||||
key:
|
key:
|
||||||
from_secret: server_ssh_key
|
from_secret: SERVER_SSH_KEY
|
||||||
|
port: 22
|
||||||
script:
|
script:
|
||||||
- cd /opt/projects/bogazici/corporate-api/test/api
|
- cd /opt/projects/bogazici/corporate-api/test/api
|
||||||
- bash scripts/deploy-test.sh
|
- bash scripts/deploy-test.sh
|
||||||
@@ -47,11 +48,12 @@ steps:
|
|||||||
- main
|
- main
|
||||||
settings:
|
settings:
|
||||||
host:
|
host:
|
||||||
from_secret: server_host
|
from_secret: SERVER_HOST
|
||||||
username:
|
username:
|
||||||
from_secret: server_user
|
from_secret: SERVER_USER
|
||||||
key:
|
key:
|
||||||
from_secret: server_ssh_key
|
from_secret: SERVER_SSH_KEY
|
||||||
|
port: 22
|
||||||
script:
|
script:
|
||||||
- cd /opt/projects/bogazici/corporate-api/prod/api
|
- cd /opt/projects/bogazici/corporate-api/prod/api
|
||||||
- bash scripts/deploy-prod.sh
|
- bash scripts/deploy-prod.sh
|
||||||
|
|||||||
Reference in New Issue
Block a user