Skip to content
This repository was archived by the owner on Dec 9, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/DEPLOY.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ If rollback is enabled, the name of the created package will include the UTC tim

##### Sequence diagram for deployment to blob storage

![alt text](./sequenceDiagrams/deployBlob.png)
![alt text](./sequenceDiagrams/deployExternal.png)

##### Sub-Commands

Expand Down
Binary file removed docs/sequenceDiagrams/deployBlob.png
Binary file not shown.
18 changes: 18 additions & 0 deletions docs/sequenceDiagrams/deployExternal.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
## Deployment - External Package
```mermaid
sequenceDiagram
participant s as Serverless CLI
participant r as Resource Group
participant f as Function App
participant b as Blob Storage

note right of s: `sls deploy`
s ->> r: Create resource group
s ->> r: Deploy ARM template
r ->> f: Included in ARM template, Deploy with RUN_FROM_PACKAGE = 1
r ->> b: Included in ARM template
note right of s: Zip code
s ->> b: Upload zipped code with name {serviceName}-t{timestamp}.zip
b ->> s: Generate SAS URL for package blob
s ->> f: Set RUN_FROM_PACKAGE = SAS URL
```
Binary file added docs/sequenceDiagrams/deployExternal.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
## Deployment - Internal Package

```mermaid
sequenceDiagram
participant s as Serverless CLI
participant r as Resource Group
participant r as Resource Group
participant f as Function App
participant b as Blob Storage

note right of s: `sls deploy`
s ->> r: Create resource group
s ->> r: Deploy ARM template
r ->> f: Included in ARM template
r ->> f: Included in ARM template, RUN_FROM_PACKAGE = 1
r ->> b: Included in ARM template
note right of s: Zip code
s ->> b: Deploy zip code with name {serviceName}-t{timestamp}.zip
s ->> f: Set package path in settings
note right of s: Log URLs
```
s ->> f: Upload zipped code directly to function app
s ->> b: Upload zipped code with name {serviceName}-t{timestamp}.zip (for rollback purposes)
```
Binary file added docs/sequenceDiagrams/deployInternal.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.