-
Notifications
You must be signed in to change notification settings - Fork 2
/
agnes.yml
45 lines (37 loc) · 1007 Bytes
/
agnes.yml
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
40
41
42
43
44
45
agnes:
version: 4
build:
path: .build
github:
api_token: '%env(GITHUB_API_TOKEN)%'
repository: famoser/nodika
config:
path: .agnes
repository:
url: [email protected]:agnes-config/famoser-nodika
data:
shared_folders:
- var/persistent
files:
- path: .env.local
required: true
scripts:
build:
hook: build
script:
- composer install --verbose --prefer-dist --no-interaction --no-dev --optimize-autoloader --no-scripts
- yarn install
- yarn run encore production
- rm -rf node_modules
deploy:
hook: deploy
script:
- php bin/console cache:clear -n
- find var -type d -print0 | xargs -0 chmod 0755
- find var -type f -print0 | xargs -0 chmod 0644
- php bin/console doctrine:migrations:migrate -n
rollback:
hook: rollback
script:
- cd $PREVIOUS_RELEASE_PATH && export MIGRATE_TO=$(php bin/console doctrine:migrations:latest)
- php bin/console doctrine:migrations:migrate $MIGRATE_TO -n