Skip to content

Commit 9eec02e

Browse files
ToriLindsayhyperlint-ai[bot]pedrosousa
authored andcommitted
Workers Builds update for Dev Week - git integration (#21044)
* Workers Builds update for Dev Week - git integration * Update src/content/docs/workers/ci-cd/builds/index.mdx Co-authored-by: hyperlint-ai[bot] <154288675+hyperlint-ai[bot]@users.noreply.github.com> * Update src/content/docs/workers/ci-cd/builds/index.mdx Co-authored-by: Pedro Sousa <[email protected]> * Update src/content/docs/workers/ci-cd/builds/index.mdx Co-authored-by: Pedro Sousa <[email protected]> * Update src/content/docs/workers/ci-cd/builds/index.mdx Co-authored-by: Pedro Sousa <[email protected]> --------- Co-authored-by: hyperlint-ai[bot] <154288675+hyperlint-ai[bot]@users.noreply.github.com> Co-authored-by: Pedro Sousa <[email protected]>
1 parent 2ec7bc6 commit 9eec02e

File tree

2 files changed

+29
-12
lines changed

2 files changed

+29
-12
lines changed

src/content/docs/workers/ci-cd/builds/git-integration/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@ For details on providing access to organization accounts, see [GitHub organizati
3333

3434
## Manage a Git Integration
3535

36-
You can manage the Git installation associated with your repository connection by navigating to the Worker, then going to **Settings** > **Builds** and selecting **Manage** under **Git Repository**.
36+
To manage your Git installation, go to the [Cloudflare dashboard](https://dash.cloudflare.com) > **Workers & Pages** > your Worker > **Settings** > **Builds** > under **Git Repository**, select **Manage**.
3737

3838
This can be useful for managing repository access or troubleshooting installation issues by reinstalling. For more details, see the [GitHub](/workers/ci-cd/builds/git-integration/github-integration) and [GitLab](/workers/ci-cd/builds/git-integration/gitlab-integration) guides for how to manage your installation.

src/content/docs/workers/ci-cd/builds/index.mdx

Lines changed: 28 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,30 @@ sidebar:
88
text: Beta
99
---
1010

11-
Workers Builds allows you to connect an _existing Worker_ to its GitHub or GitLab repository, enabling automated builds and deployments for your project on push.
12-
13-
Support for creating a _new Worker_ from importing a Git repository is coming soon.
11+
The Cloudflare [Git integration](/workers/ci-cd/builds/git-integration/) lets you connect a new or existing Worker to a GitHub or GitLab repository, enabling automated builds and deployments for your Worker on push.
1412

1513
## Get started
1614

17-
If you have an existing Worker and have pushed the project to a Git repository, you can now connect the repository to your Worker, enabling automatic builds and deployments.
15+
### Connect a new Worker
16+
17+
To create a new Worker and connect it to a GitHub or GitLab repository:
18+
1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com) and select your account.
19+
2. Go to **Workers & Pages**.
20+
3. Select **Create**.
21+
4. Under **Import a repository**, select a **Git account**.
22+
5. Select the repository you want to import from the list. You can also use the search bar to narrow the results.
23+
6. Configure your project and select **Save and Deploy**.
24+
7. Preview your Worker at its provided [`workers.dev`](/workers/configuration/routing/workers-dev/) subdomain.
1825

19-
To set up builds for your Worker:
26+
### Connect an existing Worker
2027

21-
1. Select your Worker in the [Workers & Pages Dashboard](https://dash.cloudflare.com) and navigate to **Settings > Build**.
22-
2. Select the Git provider you would like to connect to or select **Connect** and follow the prompts to install the Cloudflare [Git integration](/workers/ci-cd/builds/git-integration/) on your Git account.
23-
3. Configure your [build settings](/workers/ci-cd/builds/configuration/) by selecting your desired Git repository, branch, and configure commands for your build.
24-
4. Push a commit to your Git repository to trigger a build and deploy for your Worker.
28+
To connect an existing Worker to a GitHub or GitLab repository:
29+
1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com) and select your account.
30+
2. Go to **Workers & Pages**.
31+
3. Select the Worker you want to connect to a repository.
32+
4. Select **Settings** and then **Builds**.
33+
5. Select **Connect** and follow the prompts to connect the repository to your Worker and configure your [build settings](/workers/ci-cd/builds/configuration/).
34+
6. Push a commit to your Git repository to trigger a build and deploy to your Worker.
2535

2636
:::caution
2737

@@ -43,6 +53,13 @@ If a build succeeds, it is uploaded as a version. If the build is configured to
4353

4454
## Disconnecting builds
4555

46-
To disable automatic builds and deployments from your Git repository, go to **Settings** > **Builds** and select **Disconnect** under **Git Repositories**. If you want to switch to a different repository for your Worker, you must first disable builds, then reconnect to select the new repository.
56+
To disconnect a Worker from a GitHub or GitLab repository:
57+
1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com) and select your account.
58+
2. Go to **Workers & Pages**.
59+
3. Select the Worker you want to disconnect from a repository.
60+
4. Select **Settings** and then **Builds**.
61+
5. Select **Disconnect**.
62+
63+
If you want to switch to a different repository for your Worker, you must first disable builds, then reconnect to select the new repository.
4764

48-
To disable automatic deployments while still allowing builds to run automatically and save as [versions](/workers/configuration/versions-and-deployments/) (without promoting them to an active deployment), update your deploy command to: `npx wrangler versions upload`.
65+
To disable automatic deployments while still allowing builds to run automatically and save as [versions](/workers/configuration/versions-and-deployments/) (without promoting them to an active deployment), update your deploy command to: `npx wrangler versions upload`.

0 commit comments

Comments
 (0)