-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbitbucket-pipelines.yml
54 lines (53 loc) · 1.73 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
48
49
50
51
52
53
54
image:
name: $template_default_taito_image
username: $template_default_taito_image_username
password: $template_default_taito_image_password
email: $template_default_taito_image_email
options:
docker: true
max-time: 60
definitions:
services:
docker:
memory: 3072
pipelines:
branches:
"{dev,test,stag,canary,master}":
# Prepare build
- step:
script:
- export taito_mode=ci
- taito build prepare:$BITBUCKET_BRANCH
artifacts:
- taitoflag_version
- taitoflag_images_exist
# Prepare artifacts for deployment in parallel
- parallel:
- step: # wordpress prepare
script:
- export taito_mode=ci
- taito artifact prepare:wordpress:$BITBUCKET_BRANCH $BITBUCKET_COMMIT true
artifacts:
- wordpress.docker
- wordpress-tester.docker
# Update wordpress plugins
- step:
script:
- export taito_mode=ci
- "taito wp plugin update:$BITBUCKET_BRANCH || echo WARNING: Failed updating wordpress plugins"
# Deploy the changes to target environment
- step:
script:
- export taito_mode=ci
- taito deployment deploy:$BITBUCKET_BRANCH $BITBUCKET_COMMIT
# Release artifacts (push previously built container images with a new tag)
- parallel:
- step: # wordpress release
script:
- export taito_mode=ci
- taito artifact release:wordpress:$BITBUCKET_BRANCH $BITBUCKET_COMMIT
# Release build
- step:
script:
- export taito_mode=ci
- taito build release:$BITBUCKET_BRANCH