You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/ci-cd.md
+47Lines changed: 47 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -76,6 +76,53 @@ deploy:
76
76
- master
77
77
```
78
78
79
+
## Bitbucket Pipelines
80
+
81
+
Firstly, [generate a new SSH key and add it to your workspace for the server](https://support.atlassian.com/bitbucket-cloud/docs/configure-ssh-and-two-step-verification/). There are instructions on the SSH Keys page that can help you add this key to your server.
82
+
83
+
You may also need to [define your environment variables](https://support.atlassian.com/bitbucket-cloud/docs/set-up-and-monitor-deployments/#Step-1--Define-your-environments) that you need to use in your deploy commands.
84
+
85
+
Create a bitbucket-pipelines.yml file with the following content:
86
+
87
+
```yml
88
+
pipelines:
89
+
branches:
90
+
develop:
91
+
- stage:
92
+
# this is the target deployment name and it will inherit the environment from it
93
+
deployment: staging
94
+
name: Deploy Staging
95
+
steps:
96
+
- step:
97
+
name: Composer Install
98
+
image: composer/composer:2.2
99
+
caches:
100
+
- composer
101
+
script:
102
+
- composer install --quiet
103
+
artifacts:
104
+
# we need to save all these files so that they can be picked up in the actual deployment
105
+
- vendor/**
106
+
- step:
107
+
name: NPM Install
108
+
image: node:22-bullseye-slim
109
+
caches:
110
+
- node
111
+
script:
112
+
- npm install --silent
113
+
artifacts:
114
+
# we need to save all these files so that they can be picked up in the actual deployment
115
+
- public/build/**
116
+
- step:
117
+
name: Deployer Deploy
118
+
timeout: 6m # if it takes longer than this, error out
Only one deployment job runs at a time with the [`resource_group` keyword](https://docs.gitlab.com/ee/ci/yaml/index.html#resource_group) in .gitlab-ci.yml.
0 commit comments