-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathbitbucket-pipelines.yml
47 lines (45 loc) · 1.4 KB
/
bitbucket-pipelines.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
46
47
# Author Emad Zaamout | [email protected]
# Bitbucket yml validator
# https://bitbucket-pipelines.prod.public.atl-paas.net/validator
image: php:8.0-fpm
pipelines:
default:
- parallel:
- step:
services:
- mysql
name: 'Building & Testing'
script:
- bash ./devops/build-server.sh
- bash ./devops/build-project.sh
- bash ./devops/run-tests.sh
# - step:
# name: 'Running Lint'
# script:
# - echo "Your linting goes here..."
# staging is exactly the same thing as production. Duplicate your production
# instance, and basically add the same scripts (just modify the server)
# - step:
# name: 'Deploying to Staging'
# deployment: staging
# script:
# - bash ./devops/build-server.sh
# - bash ./devops/build-for-production.sh
# - bash ./devops/scripts/deploy-production.sh
- step:
name: 'Deploying to Production'
deployment: production
# trigger: 'manual'
script:
- bash ./devops/build-server.sh
- bash ./devops/build-for-production.sh
- bash ./devops/scripts/deploy-production.sh
definitions:
services:
mysql:
image: mysql:8.0
environment:
MYSQL_DATABASE: 'homestead'
MYSQL_RANDOM_ROOT_PASSWORD: 'yes'
MYSQL_USER: 'homestead'
MYSQL_PASSWORD: 'secret'