-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathci.dev.yml
More file actions
36 lines (36 loc) · 1.27 KB
/
ci.dev.yml
File metadata and controls
36 lines (36 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
schemaVersion: v0.2
prepare:
steps:
- name: Install PHP and MariaDB (only for client)
command: nix-env -iA nixpkgs.php83 nixpkgs.nginx nixpkgs.php83Packages.composer
nixpkgs.mariadb_114
- name: Install locales
command: nix-env -iA nixpkgs.glibcLocalesUtf8
- name: Export locales
command: export LOCALE_ARCHIVE="$(nix-env --installed --no-name --out-path
--query glibc-locales)/lib/locale/locale-archive"
- name: Create composer project
command: '[ -d pimcore ] && echo "✅ Project already exists. Skipping." ||
COMPOSER_MEMORY_LIMIT=-1 composer create-project pimcore/demo pimcore'
- name: Pimcore install
command: cd pimcore && ./vendor/bin/pimcore-install --no-interaction
test:
steps: []
run:
pimcore:
steps:
- name: Create tmp directories for nginx
command: mkdir -p /tmp/nginx_{proxy,fastcgi,uwsgi,scgi}
- name: Kill PHP
command: pkill php || echo "PHP not yet running..."
- name: Start PHP-FPM
command: php-fpm -y /home/user/app/config/php/pimcore.conf
- name: Start nginx
command: nginx -c /home/user/app/config/nginx/pimcore.conf
plan: 201
replicas: 1
network:
ports:
- port: 3000
isPublic: false
paths: []