-
Notifications
You must be signed in to change notification settings - Fork 0
/
bitbucket-pipelines.yml
41 lines (36 loc) · 1.29 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
image:
name: aligent/shopify-cli:latest
definitions:
steps:
- step: &theme-check
name: Theme Check
script:
- echo "Starting THEME CHECK..."
- ruby -v && node -v && npm -v && shopify version
- ls -alR #list files in the current directory
- echo -e "\nRunning shopify theme check --fail-level=$FAIL_LEVEL\n"; shopify theme check --fail-level=$FAIL_LEVEL
- echo -e "Done THEME CHECK\n"
- step: &deploy
name: Deploy Theme
script:
- echo -e "DEPLOYING to $BITBUCKET_DEPLOYMENT_ENVIRONMENT...\n\n$ASCII_LABEL\n"
- echo -e "shopify theme push --store=$SHOPIFY_STORE --password=$SHOPIFY_CLI_ACCESS_TOKEN --theme=$THEME_ID $THEME_PUSH_ARGS\n"
- shopify theme push --store="$SHOPIFY_STORE" --password="$SHOPIFY_CLI_ACCESS_TOKEN" --theme="$THEME_ID" $THEME_PUSH_ARGS
pipelines:
branches:
staging:
- step:
<<: *deploy
deployment: Staging
production:
- step:
script:
- echo "Start of production deployment. Press DEPLOY button when you are ready."
- step:
<<: *deploy
trigger: manual
deployment: Production
pull-requests:
'**': # Trigger for all branches
- step:
<<: *theme-check