Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: integration deploy commands #6078

Merged
merged 96 commits into from
Oct 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
96 commits
Select commit Hold shift + click to select a range
b9ad6e6
Add @netlify/sdk as a dependency.
ericapisani Aug 15, 2023
f12b070
Import init method from Netlify SDK and invoke it
ericapisani Aug 15, 2023
2379317
Add await
ericapisani Aug 15, 2023
715446c
More lint things
ericapisani Aug 15, 2023
a7ac6ff
Add 'int' as alias for 'integration'
ericapisani Aug 15, 2023
61c9c87
Fix import
ericapisani Aug 15, 2023
13ed82e
Add build command
ericapisani Aug 15, 2023
4f07711
Add the dev and preview commands
ericapisani Aug 15, 2023
5a9e1c3
Rename
ericapisani Aug 15, 2023
0025c72
Conditionally add the integration command based on a feature flag.
ericapisani Aug 16, 2023
47e05b7
Rename files
ericapisani Aug 16, 2023
552fea0
Forgot to uncomment this logic
ericapisani Aug 16, 2023
d1f7980
Add skeleton of deploy command for netlify integrations
ericapisani Aug 16, 2023
ce62b73
WIP commit. General outline of the integration deploy command
ericapisani Aug 16, 2023
cbec853
WIP commit
ericapisani Aug 16, 2023
15ceb04
Pin the version of configstore to 5.
ericapisani Aug 17, 2023
ccd0f92
Get integration information from integration service when site is linked
ericapisani Aug 17, 2023
13e5d03
Update slug automatically if it differs from jigsaw since it's the so…
ericapisani Aug 18, 2023
6dbcf33
update packages
ericapisani Aug 18, 2023
966ded0
Merge branch 'main' into ep/add-deploy-int-command
ericapisani Aug 31, 2023
f926ded
WIP commit
ericapisani Sep 5, 2023
f32c975
Merge branch 'main' into ep/add-deploy-int-command
ericapisani Sep 18, 2023
1ab06f6
Add logic for updating the integration info on remote.
ericapisani Sep 18, 2023
f173770
Add error handling on request to remote
ericapisani Sep 18, 2023
e76c51c
Add logic for registering an integration on the remote
ericapisani Sep 19, 2023
34720f7
Add the deploying of the integration site
ericapisani Sep 19, 2023
ae7657e
WIP commit
ericapisani Sep 19, 2023
4f5951e
Slight reorg of code. Still needs further refactoring
ericapisani Sep 19, 2023
73e0dab
Update package.json
ericapisani Sep 20, 2023
4d3844f
Move register functionality to it's own function
ericapisani Sep 20, 2023
49c97a8
Move update functionality to it's own function
ericapisani Sep 20, 2023
461c31c
Merge branch 'main' into ep/add-deploy-int-command
ericapisani Sep 20, 2023
565093e
Support env variables
ericapisani Sep 20, 2023
4fe5446
Make some changes based on initial code walkthrough with team
ericapisani Sep 20, 2023
668b306
Remove outdated comment
ericapisani Sep 20, 2023
7f8c78a
Fix lint issues
ericapisani Sep 20, 2023
5c57a5b
Trying to debug error in github actions
ericapisani Sep 20, 2023
c7082dc
Revert change made for debugging
ericapisani Sep 20, 2023
9684900
Update reference to @netlify/sdk
ericapisani Sep 21, 2023
32ccec0
Show error message from remote when one is returned
ericapisani Sep 21, 2023
b804352
add exit statements that were missing
ericapisani Sep 21, 2023
46dfcf4
Merge branch 'main' into ep/add-deploy-int-command
ericapisani Sep 22, 2023
085f51b
chore: run docs build
sarahetter Sep 27, 2023
d214119
chore: lintfix
sarahetter Sep 27, 2023
d6369d9
chore: prettier
sarahetter Sep 27, 2023
352967b
feat: convert to command:subcommand as is in the rest of the cli
sarahetter Sep 27, 2023
4f10eeb
docs: add subcommands in docs
sarahetter Sep 27, 2023
de3d0a4
chore: rename folder to match command name
sarahetter Sep 27, 2023
ea3da78
chore: prettier
sarahetter Sep 27, 2023
2b09229
test: test for integration:init
sarahetter Sep 27, 2023
06c9c14
chore: remove unused import
sarahetter Sep 27, 2023
7d8e1bf
test: dev command
sarahetter Sep 27, 2023
1a2f6ce
test: add tests to make sure sdk is being called
sarahetter Sep 27, 2023
2c91393
chore: update version of sdk
sarahetter Sep 28, 2023
cc264cf
chore: remove mystery markdown-magic
sarahetter Sep 28, 2023
da33ac3
test: starting on tests for deploy
sarahetter Sep 28, 2023
fefccd5
Merge branch 'main' into ep/add-deploy-int-command
sarahetter Oct 2, 2023
e9cba63
test: trying to get these mocks going
sarahetter Oct 4, 2023
cafe8be
test: more progress on test
sarahetter Oct 5, 2023
1bd21c3
Merge branch 'main' into ep/add-deploy-int-command
sarahetter Oct 5, 2023
450ea27
feat: add integrationLevel to integration deploy
khendrikse Oct 9, 2023
fbf3fd0
Exit process if required fields are missing
ericapisani Oct 10, 2023
fe708fa
Move reading the integration configuration to earlier in the order of…
ericapisani Oct 10, 2023
f642649
Add integrationLevel to what's written in the yaml file
ericapisani Oct 10, 2023
3a6a6da
test: passing test of deployment
sarahetter Oct 10, 2023
a375a47
chore: prettier
sarahetter Oct 10, 2023
02dac54
Add better error messaging.
ericapisani Oct 11, 2023
c05d62a
Run prettier
ericapisani Oct 11, 2023
8d7b3e5
Update link
ericapisani Oct 11, 2023
48901f2
Merge branch 'ep/add-deploy-int-command' of ssh://github.com/netlify/…
ericapisani Oct 11, 2023
77937d0
Support passing in the build flag to the int:deploy command
ericapisani Oct 11, 2023
f053c4f
chore: update sdk so integrationlevel validation works correctly
khendrikse Oct 12, 2023
cc5bb96
Changes from docs review
ericapisani Oct 13, 2023
93d11a3
lint
ericapisani Oct 13, 2023
294960a
Merge branch 'ep/add-deploy-int-command' of ssh://github.com/netlify/…
ericapisani Oct 13, 2023
d6bab79
Missed including the level
ericapisani Oct 13, 2023
aee4b6e
Merge branch 'main' into ep/add-deploy-int-command
ericapisani Oct 13, 2023
57c203f
docs: docs review rewording
sarahetter Oct 16, 2023
a5e5def
feat: remove integration:init command
sarahetter Oct 16, 2023
87cd8c7
docs: doc review changes
sarahetter Oct 16, 2023
9165e43
docs: run docs build
sarahetter Oct 16, 2023
67fa0b3
chore: format
sarahetter Oct 16, 2023
c5043e8
docs: remove beta
sarahetter Oct 16, 2023
1d784ed
feat: remove all but integration:deploy
sarahetter Oct 16, 2023
370b33b
docs: remove docs for removed commands
sarahetter Oct 16, 2023
dc1762e
Merge branch 'main' into ep/add-deploy-int-command
sarahetter Oct 16, 2023
4d16bc1
chore: package lock merge conflicts
sarahetter Oct 16, 2023
dd1d7b1
chore: merge conflict
sarahetter Oct 16, 2023
54f7996
chore: update sdk version
sarahetter Oct 17, 2023
1469af5
feat: add logging for finished, and be clearer in the deploy function
sarahetter Oct 17, 2023
ba54088
feat: add shortened url
sarahetter Oct 17, 2023
7b97388
Merge branch 'main' into ep/add-deploy-int-command
sarahetter Oct 17, 2023
0a50508
fix: missing imports
estephinson Oct 19, 2023
a54e07a
chore: fix failing tests
estephinson Oct 19, 2023
ff8bb4c
chore: remove mock call
estephinson Oct 19, 2023
e8bef7e
chore: update snapshot
lemusthelroy Oct 19, 2023
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
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ See the [CLI command line reference](https://cli.netlify.com/commands/) to get s
- [env](#env)
- [functions](#functions)
- [init](#init)
- [integration](#integration)
- [link](#link)
- [login](#login)
- [open](#open)
Expand Down Expand Up @@ -165,6 +166,15 @@ Manage netlify functions

Configure continuous deployment for a new or existing site. To create a new site without continuous deployment, use `netlify sites:create`

### [integration](/docs/commands/integration.md)

Manage Netlify Integrations built with the Netlify SDK

| Subcommand | description |
|:--------------------------- |:-----|
| [`integration:deploy`](/docs/commands/integration.md#integrationdeploy) | Register, build, and deploy a private integration on Netlify |


### [link](/docs/commands/link.md)

Link a local repo or project folder to an existing site on Netlify
Expand Down
9 changes: 9 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,15 @@ Manage netlify functions

Configure continuous deployment for a new or existing site. To create a new site without continuous deployment, use `netlify sites:create`

### [integration](/docs/commands/integration.md)

Manage Netlify Integrations built with the Netlify SDK

| Subcommand | description |
|:--------------------------- |:-----|
| [`integration:deploy`](/docs/commands/integration.md#integrationdeploy) | Register, build, and deploy a private integration on Netlify |


### [link](/docs/commands/link.md)

Link a local repo or project folder to an existing site on Netlify
Expand Down
9 changes: 9 additions & 0 deletions docs/commands/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,15 @@ Manage netlify functions

Configure continuous deployment for a new or existing site. To create a new site without continuous deployment, use `netlify sites:create`

### [integration](/docs/commands/integration.md)

Manage Netlify Integrations built with the Netlify SDK

| Subcommand | description |
|:--------------------------- |:-----|
| [`integration:deploy`](/docs/commands/integration.md#integrationdeploy) | Register, build, and deploy a private integration on Netlify |


### [link](/docs/commands/link.md)

Link a local repo or project folder to an existing site on Netlify
Expand Down
49 changes: 49 additions & 0 deletions docs/commands/integration.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
---
title: Netlify CLI integration command
description: Create, develop, and deploy integrations.
---

# `integration`

<!-- AUTO-GENERATED-CONTENT:START (GENERATE_COMMANDS_DOCS) -->
Manage Netlify Integrations built with the Netlify SDK

**Usage**

```bash
netlify integration
```

**Flags**

- `filter` (*string*) - For monorepos, specify the name of the application to run the command in
- `debug` (*boolean*) - Print debugging information

| Subcommand | description |
|:--------------------------- |:-----|
| [`integration:deploy`](/docs/commands/integration.md#integrationdeploy) | Register, build, and deploy a private integration on Netlify |


---
## `integration:deploy`

Register, build, and deploy a private integration on Netlify

**Usage**

```bash
netlify integration:deploy
```

**Flags**

- `auth` (*string*) - Netlify auth token to deploy with
- `build` (*boolean*) - Build the integration
- `filter` (*string*) - For monorepos, specify the name of the application to run the command in
- `prod` (*boolean*) - Deploy to production
- `site` (*string*) - A site name or ID to deploy to
- `debug` (*boolean*) - Print debugging information

---

<!-- AUTO-GENERATED-CONTENT:END -->
Loading