Skip to content

Commit d211df6

Browse files
author
Jonathan Visser
committed
Reuse the build step for the bitbucket pipeline template
1 parent caede53 commit d211df6

File tree

1 file changed

+16
-19
lines changed

1 file changed

+16
-19
lines changed

templates/bitbucket-pipelines.yml

Lines changed: 16 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,32 @@
11
# See https://quay.io/repository/hypernode/deploy?tab=tags for all possible tags.
22
image: quay.io/hypernode/deploy:3-php8.2-node18
33

4+
definition:
5+
steps:
6+
- step: &hypernode-build
7+
name: Build
8+
script:
9+
- hypernode-deploy build
10+
artifacts:
11+
- build/**
12+
413
pipelines:
514
branches:
615
# Deploy to test configuration
716
# If you are only deploying to production remove this configuration
8-
test:
9-
- step:
10-
name: build
11-
script:
12-
- hypernode-deploy build -vvv
13-
artifacts:
14-
- build/**
17+
acceptance: # acceptance/staging branch
18+
- step: *hypernode-build
1519
- step:
16-
name: deploy
20+
name: Deploy to staging
1721
deployment: test
1822
script:
19-
- hypernode-deploy deploy test -vvv
20-
after-script:
21-
- hypernode-deploy cleanup
22-
23+
- hypernode-deploy deploy test
2324
# Deploy to production
2425
master:
26+
- step: *hypernode-build
2527
- step:
26-
name: build
27-
script:
28-
- hypernode-deploy build
29-
artifacts:
30-
- build/**
31-
- step:
32-
name: deploy
28+
name: Deploy to production
3329
deployment: production
3430
script:
3531
- hypernode-deploy deploy production
32+

0 commit comments

Comments
 (0)