-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathbitbucket-pipelines.yml
More file actions
36 lines (34 loc) · 1.08 KB
/
bitbucket-pipelines.yml
File metadata and controls
36 lines (34 loc) · 1.08 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
image: statikbe/bitbucket-php84-non-root:latest
pipelines:
branches:
develop:
- step:
name: Deploy to staging
deployment: staging
caches:
- composer
- node
script:
# Install composer dependencies
- composer install --verbose --prefer-dist --no-progress --no-interaction --no-dev --optimize-autoloader
# build frontend
- sh ./bitbucket_pipelines_build_frontend.sh
# Deploy to staging
- dep deploy staging -vv
main:
- step:
name: Deploy to live
deployment: production
caches:
- composer
- node
script:
# Install composer dependencies
- composer install --verbose --prefer-dist --no-progress --no-interaction --no-dev --optimize-autoloader
# build frontend
- sh ./bitbucket_pipelines_build_frontend.sh
# Deploy to production
- dep deploy production -vv
definitions:
caches:
node: frontend/node_modules