-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathci.yml
More file actions
39 lines (39 loc) · 1.22 KB
/
ci.yml
File metadata and controls
39 lines (39 loc) · 1.22 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
37
38
39
schemaVersion: v0.2
prepare:
steps:
- name: Download Moodle
command: wget -O moodle.tgz
https://download.moodle.org/download.php/direct/stable501/moodle-latest-501.tgz
- name: Untar Moodle Tarball
command: tar xf moodle.tgz
- name: Install Nix packages
command: nix-env -iA nixpkgs.php83 nixpkgs.nginx nixpkgs.postgresql
nixpkgs.php83Packages.composer
- name: run composer install
command: cd moodle && composer install --no-dev --classmap-authoritative
test:
steps: []
run:
moodle:
steps:
- name: Copy config
command: cp config/config.php ./moodle
- name: Create tmp directories for nginx
command: mkdir -p /tmp/nginx_{proxy,fastcgi,uwsgi,scgi}
- name: Kill any running php-fpm processes
command: pkill php || echo 'Not running'
- name: Start php-fpm
command: mkdir -p logs/php && php-fpm -y /home/user/app/config/php/moodle.conf
- name: Start nginx
command: mkdir -p logs/nginx && nginx -c $(pwd)/config/nginx/moodle.conf
plan: 201
replicas: 1
network:
ports:
- port: 3000
isPublic: false
paths:
- port: 3000
path: /
stripPath: false
env: {}