Skip to content

Commit 135c068

Browse files
MI-85: Update document
1 parent b120ed4 commit 135c068

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,10 @@ Add the following your `bitbucket-pipelines.yml` file:
3333
| UPLOAD_BADGE | Whether or not to upload a deployment badge to the repositories downloads section. (Accepted values: `true`/`false`) |
3434
| APP_USERNAME | The user to upload the badge as. Required if UPLOAD_BADGE is set to `true`. |
3535
| APP_PASSWORD | The app password of the user uploading the badge. Required if UPLOAD_BADGE is set to `true`. |
36-
| TIMEZONE | Which time zone the time in the badge should use (Default: 'Australia/Adelaide') |
36+
| TIMEZONE | Which time zone the time in the badge should use (Default: `Australia/Adelaide`) |
37+
| PROFILE | The profile name that is used for deployment (Default: `bitbucket-deployer`) |
38+
| CMD | The command that this pipe will run (Eg: `deploy`, `remove`. Default: `deploy`) |
39+
| SERVICES_PATH | The relative path from root folder to the folder where applications are defined (Default: `services`) |
3740

3841
- Default pipelines variables that are available for builds: https://support.atlassian.com/bitbucket-cloud/docs/variables-and-secrets/
3942
- Please check: https://support.atlassian.com/bitbucket-cloud/docs/app-passwords/ for how to generate an app password.
@@ -43,7 +46,7 @@ Add the following your `bitbucket-pipelines.yml` file:
4346
The pipe expects:
4447

4548
1. A single `nx.json` file at the root folder.
46-
2. Each application to be under a folder called `services`, and to have a `serverless.yml` and a `project.json` files in its own folder.
49+
2. Each application to be under a folder as defined via `SERVICES_PATH` variable above (default as `services`), and to have a `serverless.yml` and a `project.json` files in its own folder.
4750

4851
```
4952
.
@@ -60,7 +63,7 @@ The pipe expects:
6063
└── ...other files
6164
```
6265
63-
The `project.json` file defining an `nx` target called `deploy`, which implements serverless deployment command:
66+
The `project.json` file defining an Nx target called `deploy`, which implements serverless deployment command:
6467
6568
```json
6669
{

lib/env.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export const env: Env = {
2121
debug: process.env.DEBUG === 'true',
2222
stage: process.env.STAGE || 'stg',
2323
profile: process.env.PROFILE || 'bitbucket-deployer',
24-
cmd: process.env.cmd || 'deploy',
24+
cmd: process.env.CMD || 'deploy',
2525
awsAccessKeyId: process.env.AWS_ACCESS_KEY_ID,
2626
awsSecretAccessKey: process.env.AWS_SECRET_ACCESS_KEY,
2727
cfnRole: process.env.CFN_ROLE,
@@ -33,5 +33,5 @@ export const env: Env = {
3333
bitbucketCloneDir: process.env.BITBUCKET_CLONE_DIR || '',
3434
bitbucketRepoSlug: process.env.BITBUCKET_REPO_SLUG,
3535
bitbucketWorkspace: process.env.BITBUCKET_WORKSPACE,
36-
servicesPath: process.env.servicesPath || 'services',
36+
servicesPath: process.env.SERVICES_PATH || 'services',
3737
};

0 commit comments

Comments
 (0)