Skip to content

Commit c758e99

Browse files
committed
feat: run bitbucket builds only on env branches, verify artifacts
1 parent e80f37a commit c758e99

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed

bitbucket-pipelines.yml

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@ image:
44
password: $template_default_taito_image_password
55
email: $template_default_taito_image_email
66
options:
7+
docker: true
78
max-time: 60
89

910
pipelines:
10-
default:
11+
branches:
12+
'{dev,test,stag,canary,master}':
1113
# Install libraries
1214
- step:
1315
script:
@@ -76,3 +78,25 @@ pipelines:
7678
- export taito_mode=ci
7779
- taito artifact-publish:$BITBUCKET_BRANCH
7880
- taito artifact-release:$BITBUCKET_BRANCH
81+
- parallel:
82+
# Verify images by pushing them with the -untested tag prefix
83+
- step: # admin
84+
script:
85+
- export taito_mode=ci
86+
- taito artifact-verify:admin:$BITBUCKET_BRANCH $BITBUCKET_COMMIT
87+
- step: # client
88+
script:
89+
- export taito_mode=ci
90+
- taito artifact-verify:client:$BITBUCKET_BRANCH $BITBUCKET_COMMIT
91+
- step: # graphql
92+
script:
93+
- export taito_mode=ci
94+
- taito artifact-verify:graphql:$BITBUCKET_BRANCH $BITBUCKET_COMMIT
95+
- step: # server
96+
script:
97+
- export taito_mode=ci
98+
- taito artifact-verify:server:$BITBUCKET_BRANCH $BITBUCKET_COMMIT
99+
- step: # www
100+
script:
101+
- export taito_mode=ci
102+
- taito artifact-verify:www:$BITBUCKET_BRANCH $BITBUCKET_COMMIT

0 commit comments

Comments
 (0)