ci(confg): rename steps
This commit is contained in:
parent
32a5934d49
commit
57f68c7a59
|
@ -1,10 +1,10 @@
|
||||||
pipeline:
|
pipeline:
|
||||||
wait_db:
|
db-wait:
|
||||||
image: gitnet.fr/deblan/timeout:latest
|
image: gitnet.fr/deblan/timeout:latest
|
||||||
commands:
|
commands:
|
||||||
- /bin/timeout -t 30 -v -c 'while true; do nc -z -v db 3306 2>&1 | grep succeeded && exit 0; sleep 0.5; done'
|
- /bin/timeout -t 30 -v -c 'while true; do nc -z -v db 3306 2>&1 | grep succeeded && exit 0; sleep 0.5; done'
|
||||||
|
|
||||||
create_db:
|
db-create:
|
||||||
image: mariadb:10.3
|
image: mariadb:10.3
|
||||||
secrets: [mysqldump]
|
secrets: [mysqldump]
|
||||||
commands:
|
commands:
|
||||||
|
@ -13,7 +13,7 @@ pipeline:
|
||||||
when:
|
when:
|
||||||
branch: [master, master-*, develop, develop-*]
|
branch: [master, master-*, develop, develop-*]
|
||||||
|
|
||||||
config:
|
app-config:
|
||||||
image: deblan/php:8.1
|
image: deblan/php:8.1
|
||||||
commands:
|
commands:
|
||||||
- echo APP_ENV=prod >> .env.local
|
- echo APP_ENV=prod >> .env.local
|
||||||
|
@ -22,13 +22,13 @@ pipeline:
|
||||||
when:
|
when:
|
||||||
branch: [master, master-*, develop, develop-*]
|
branch: [master, master-*, develop, develop-*]
|
||||||
|
|
||||||
composer:
|
php-composer:
|
||||||
image: deblan/php:8.1
|
image: deblan/php:8.1
|
||||||
commands:
|
commands:
|
||||||
- apt-get update && apt-get -y install git
|
- apt-get update && apt-get -y install git
|
||||||
- composer install --no-scripts
|
- composer install --no-scripts
|
||||||
|
|
||||||
migrate:
|
db-migrate:
|
||||||
image: deblan/php:8.1
|
image: deblan/php:8.1
|
||||||
environment:
|
environment:
|
||||||
- PHP=php
|
- PHP=php
|
||||||
|
@ -37,14 +37,14 @@ pipeline:
|
||||||
when:
|
when:
|
||||||
branch: [master, master-*, develop, develop-*, feature/*]
|
branch: [master, master-*, develop, develop-*, feature/*]
|
||||||
|
|
||||||
jsroutes:
|
app-jsroutes:
|
||||||
image: deblan/php:8.1
|
image: deblan/php:8.1
|
||||||
commands:
|
commands:
|
||||||
- php bin/console fos:js-routing:dump --format=json --target=public/js/fos_js_routes.json
|
- php bin/console fos:js-routing:dump --format=json --target=public/js/fos_js_routes.json
|
||||||
when:
|
when:
|
||||||
branch: [master, master-*, develop, develop-*, feature/*]
|
branch: [master, master-*, develop, develop-*, feature/*]
|
||||||
|
|
||||||
node:
|
node-build:
|
||||||
image: node:16-slim
|
image: node:16-slim
|
||||||
commands:
|
commands:
|
||||||
- npm install -g svg2ttf ttf2eot ttf2woff2
|
- npm install -g svg2ttf ttf2eot ttf2woff2
|
||||||
|
@ -55,13 +55,13 @@ pipeline:
|
||||||
- test -f public/js/fos_js_routes.json || echo "{}" > public/js/fos_js_routes.json
|
- test -f public/js/fos_js_routes.json || echo "{}" > public/js/fos_js_routes.json
|
||||||
- npm run build
|
- npm run build
|
||||||
|
|
||||||
osv_detector:
|
security-check:
|
||||||
image: gitnet.fr/deblan/osv-detector:v0.9
|
image: gitnet.fr/deblan/osv-detector:v0.9
|
||||||
commands:
|
commands:
|
||||||
- osv-detector composer.lock yarn.lock
|
- osv-detector composer.lock yarn.lock
|
||||||
failure: ignore
|
failure: ignore
|
||||||
|
|
||||||
deploy:
|
app-deploy:
|
||||||
image: deblan/php:8.1
|
image: deblan/php:8.1
|
||||||
secrets: [ssh_user, ssh_host, ssh_priv_key, app_directory]
|
secrets: [ssh_user, ssh_host, ssh_priv_key, app_directory]
|
||||||
commands:
|
commands:
|
||||||
|
|
Loading…
Reference in a new issue