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: src/content/docs/workers/ci-cd/builds/git-integration/index.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,6 +33,6 @@ For details on providing access to organization accounts, see [GitHub organizati
33
33
34
34
## Manage a Git Integration
35
35
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**.
37
37
38
38
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.
Copy file name to clipboardExpand all lines: src/content/docs/workers/ci-cd/builds/index.mdx
+28-11Lines changed: 28 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,20 +8,30 @@ sidebar:
8
8
text: Beta
9
9
---
10
10
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.
14
12
15
13
## Get started
16
14
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.
18
25
19
-
To set up builds for your Worker:
26
+
### Connect an existing Worker
20
27
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.
25
35
26
36
:::caution
27
37
@@ -43,6 +53,13 @@ If a build succeeds, it is uploaded as a version. If the build is configured to
43
53
44
54
## Disconnecting builds
45
55
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.
47
64
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