Skip to content

Commit 87b42ed

Browse files
committed
Merge branch 'anni/wb-checkruns' of https://github.com/cloudflare/cloudflare-docs into anni/wb-checkruns
2 parents c26b04d + 94f8653 commit 87b42ed

File tree

11 files changed

+76
-16
lines changed

11 files changed

+76
-16
lines changed

src/content/docs/pages/configuration/git-integration/github-integration.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ pcx_content_type: concept
33
title: GitHub integration
44
---
55

6-
Cloudflare supports connecting Cloudflare Pages to your GitHub repositories, and will automatically deploy your code everytime you push a change to a branch.
6+
You can connect each Cloudflare Pages project to a GitHub repository, and Cloudflare will automatically deploy your code every time you push a change to a branch.
77

88
## Features
99

@@ -19,7 +19,7 @@ You can also use [preview deployments](/pages/configuration/preview-deployments/
1919

2020
Every time you open a new pull request on your GitHub repository, Cloudflare Pages will create a unique preview URL, which will stay updated as you continue to push new commits to the branch. Note that preview URLs will not be created for pull requests created from forks of your repository. Learn more in [Preview Deployments](/pages/configuration/preview-deployments/).
2121

22-
![GitHub Preview Urls](~/assets/images/pages/configuration/ghpreviewurls.png)
22+
![GitHub Preview URLs](~/assets/images/pages/configuration/ghpreviewurls.png)
2323

2424
### Skipping a build via a commit message
2525

@@ -73,7 +73,7 @@ Note that removing access to GitHub will disable new builds for Workers and Page
7373

7474
### Reinstall the Cloudflare GitHub app
7575

76-
When encountering Git integration related issues, one potential troubleshooting step is attempting to uninstall and reinstall the GitHub application associated with the Cloudflare Pages installation.
76+
If you see errors where Cloudflare Pages cannot access your git repository, you should attempt to uninstall and reinstall the GitHub application associated with the Cloudflare Pages installation.
7777

7878
1. Go to the installation settings page on GitHub:
7979
- Navigate to **Settings > Builds** for the Pages project and click **Manage** under Git Repository.

src/content/docs/pages/configuration/git-integration/gitlab-integration.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ pcx_content_type: concept
33
title: GitLab integration
44
---
55

6-
Cloudflare supports connecting Cloudflare Pages to your GitLab repositories, and will automatically deploy your code everytime you push a change to a branch.
6+
You can connect each Cloudflare Pages project to a GitLab repository, and Cloudflare will automatically deploy your code every time you push a change to a branch.
77

88
## Features
99

src/content/docs/pages/configuration/git-integration/index.mdx

Lines changed: 63 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ pcx_content_type: concept
33
title: Git integration
44
---
55

6-
Cloudflare supports connecting Cloudflare Pages to your [GitHub](/pages/configuration/git-integration/github-integration) and [GitLab](/pages/configuration/git-integration/gitlab-integration) repositories, and will automatically deploy your code everytime you push a change to a branch.
6+
You can connect each Cloudflare Pages project to a [GitHub](/pages/configuration/git-integration/github-integration) or [GitLab](/pages/configuration/git-integration/gitlab-integration) repository, and Cloudflare will automatically deploy your code every time you push a change to a branch.
77

88
:::note
99
Cloudflare Workers now also supports Git integrations to automatically build and deploy Workers from your connected Git repository. Learn more in [Workers Builds](/workers/ci-cd/builds/).
1010
:::
1111

12-
Using Git integration with Cloudflare also provides:
12+
When you connect a git repository to your Cloudflare Pages project, Cloudflare will also:
1313

1414
- **Preview deployments for custom branches**, generating preview URLs for a commit to any branch in the repository without affecting your production deployment.
1515
- **Preview URLs in pull requests** (PRs) to the repository.
@@ -31,7 +31,9 @@ If you using a different Git provider (e.g. Bitbucket) or a self-hosted instance
3131

3232
## Add a Git integration
3333

34-
If you don't have a Git account linked to your Cloudflare account, you'll be prompted to set up an installation to GitHub or GitLab when [connecting to Git](/pages/get-started/git-integration/) for the first time, or when adding a new Git account. Follow the prompts and authorize the Cloudflare Git integration.
34+
## Add a Git integration
35+
36+
If you do not have a Git account linked to your Cloudflare account, you will be prompted to set up an installation to GitHub or GitLab when [connecting to Git](/pages/get-started/git-integration/) for the first time, or when adding a new Git account. Follow the prompts and authorize the Cloudflare Git integration.
3537

3638
You can check the following pages to see if your Git integration has been installed:
3739

@@ -42,6 +44,8 @@ For details on providing access to organization accounts, see the [GitHub](/page
4244

4345
## Manage a Git integration
4446

47+
## Manage a Git integration
48+
4549
You can manage the Git installation associated with your repository connection by navigating to the Pages project, then going to **Settings** > **Builds** and selecting **Manage** under **Git Repository**.
4650

4751
This can be useful for managing repository access or troubleshooting installation issues by reinstalling. For more details, see the [GitHub](/pages/configuration/git-integration/github-integration/#managing-access) and [GitLab](/pages/configuration/git-integration/gitlab-integration/#managing-access) guides.
@@ -55,3 +59,59 @@ If you are using a Git-integrated project and do not want to trigger deployments
5559
3. You can also change your Preview branch to **None (Disable automatic branch deployments)** to pause automatic preview deployments.
5660

5761
Then, you can use Wrangler to deploy directly to your Pages project and make changes to your Git repository without automatically triggering a build.
62+
63+
## Troubleshooting
64+
65+
If your git integration is experiencing issues, you may find the following banners in the Deployment page of your Pages project.
66+
67+
### Project Creation
68+
69+
#### `This repository is being used for a Cloudflare Pages project on a different Cloudflare account.`
70+
71+
You cannot use the same GitHub/GitLab repository with multiple Cloudflare accounts. To use a Pages project with a different Cloudflare account, delete it from the current Cloudflare account first.
72+
73+
### Deployments
74+
75+
If you run into any issues related to deployments or failing, check your project dashboard to see if there are any SCM installation warnings listed as shown in the screenshot below.
76+
77+
![Pausing a deployment in the Settings of your Pages project](~/assets/images/pages/platform/git.dashboard-error.png)
78+
79+
To resolve an error displayed in the Cloudflare Pages dashboard, find it below and follow the instructions.
80+
81+
#### `This project is disconnected from your Git account, this may cause deployments to fail.`
82+
83+
To resolve this issue, follow the steps provided above in the [Reinstalling a Git installation section](/pages/configuration/git-integration/#reinstall-a-git-installation) for the applicable SCM provider. If the issue persists even after uninstalling and reinstalling, contact support.
84+
85+
#### `Cloudflare Pages is not properly installed on your Git account, this may cause deployments to fail.`
86+
87+
To resolve this issue, follow the steps provided above in the [Reinstalling a Git installation section](/pages/configuration/git-integration/#reinstall-a-git-installation) for the applicable SCM provider. If the issue persists even after uninstalling and reinstalling, contact support.
88+
89+
#### `The Cloudflare Pages installation has been suspended, this may cause deployments to fail.`
90+
91+
Go to your GitHub installation settings:
92+
93+
- `https://github.com/settings/installations` for individual accounts
94+
- `https://github.com/organizations/<YOUR_ORGANIZATION_NAME>/settings/installations` for organizational accounts
95+
96+
Click **Configure** on the Cloudflare Pages application. Scroll down to the bottom of the page and click **Unsuspend** to allow Cloudflare Pages to make future deployments.
97+
98+
#### `The project is linked to a repository that no longer exists, this may cause deployments to fail.`
99+
100+
You may have deleted or transferred the repository associated with this Cloudflare Pages project. For a deleted repository, you will need to create a new Cloudflare Pages project with a repository that has not been deleted. For a transferred repository, you can either transfer the repository back to the original Git account or you will need to create a new Cloudflare Pages project with the transferred repository.
101+
102+
#### `The repository cannot be accessed, this may cause deployments to fail.`
103+
104+
You may have excluded this repository from your installation's repository access settings. Go to your GitHub installation settings:
105+
106+
- `https://github.com/settings/installations` for individual accounts
107+
- `https://github.com/organizations/<YOUR_ORGANIZATION_NAME>/settings/installations` for organizational accounts
108+
109+
Click **Configure** on the Cloudflare Pages application. Under **Repository access**, ensure that the repository associated with your Cloudflare Pages project is included in the list.
110+
111+
#### `There is an internal issue with your Cloudflare Pages Git installation.`
112+
113+
This is an internal error in the Cloudflare Pages SCM system. You can attempt to [reinstall your Git installation](/pages/configuration/git-integration/#reinstall-a-git-installation), but if the issue persists, [contact support](/support/contacting-cloudflare-support/).
114+
115+
#### `GitHub/GitLab is having an incident and push events to Cloudflare are operating in a degraded state. Check their status page for more details.`
116+
117+
This indicates that GitHub or GitLab may be experiencing an incident affecting push events to Cloudflare. It is recommended to monitor their status page ([GitHub](https://www.githubstatus.com/), [GitLab](https://status.gitlab.com/)) for updates and try deploying again later.

src/content/docs/pages/get-started/git-integration.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ description: Connect your Git provider to Pages.
99

1010
import { Details, Render } from "~/components";
1111

12-
In this guide, you will get started with Cloudflare Pages, and deploy your first website to the Pages platform through Git integration. The Git integration enables automatic builds and deployments every time you push a change to your connected [GitHub](/pages/configuration/git-integration/github-integration/) or [GitLab](/pages/configuration/git-integration/gitlab-integration/) repository.
12+
In this guide, you will get started with Cloudflare Pages and deploy your first website to the Pages platform through Git integration. The Git integration enables automatic builds and deployments every time you push a change to your connected [GitHub](/pages/configuration/git-integration/github-integration/) or [GitLab](/pages/configuration/git-integration/gitlab-integration/) repository.
1313

1414
:::caution[You cannot switch to Direct Upload later]
1515
If you deploy using the Git integration, you cannot switch to [Direct Upload](/pages/get-started/direct-upload/) later. However, if you already use a Git-integrated project and do not want to trigger deployments every time you push a commit, you can [disable automatic deployments](/pages/configuration/git-integration/#disable-automatic-deployments) on all branches. Then, you can use Wrangler to deploy directly to your Pages projects and make changes to your Git repository without automatically triggering a build.

src/content/docs/workers/ci-cd/builds/build-caching.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ sidebar:
66
order: 5
77
---
88

9-
Improve Workers Builds build times by caching dependencies and build output between builds with a project-wide shared cache.
9+
Improve Workers build times by caching dependencies and build output between builds with a project-wide shared cache.
1010

1111
The first build to occur after enabling build caching on your Workers project will save relevant artifacts to cache. Every subsequent build will restore from cache unless configured otherwise.
1212

@@ -16,7 +16,7 @@ When enabled, build caching will automatically detect which package manager and
1616

1717
The following shows which package managers and frameworks are supported for dependency and build output caching respectively.
1818

19-
### Package Managers
19+
### Package managers
2020

2121
Workers build cache will cache the global cache directories of the following package managers:
2222

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ sidebar:
66
order: 2
77
---
88

9-
Cloudflare supports connecting your GitHub repository to your Cloudflare Worker, and will automatically deploy your code everytime you push a change to a selected branch.
9+
Cloudflare supports connecting your GitHub repository to your Cloudflare Worker, and will automatically deploy your code every time you push a change to a selected branch.
1010

1111
## Features
1212

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ sidebar:
66
order: 2
77
---
88

9-
Cloudflare supports connecting your GitLab repository to your Cloudflare Worker, and will automatically deploy your code everytime you push a change to a selected branch.
9+
Cloudflare supports connecting your GitLab repository to your Cloudflare Worker, and will automatically deploy your code every time you push a change to a selected branch.
1010

1111
## Features
1212

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
@@ -6,7 +6,7 @@ sidebar:
66
order: 3
77
---
88

9-
Cloudflare supports connecting your [GitHub](/workers/ci-cd/builds/git-integration/github-integration/) and [GitLab](/workers/ci-cd/builds/git-integration/gitlab-integration/) repository to your Cloudflare Worker, and will automatically deploy your code everytime you push a change to a selected branch.
9+
Cloudflare supports connecting your [GitHub](/workers/ci-cd/builds/git-integration/github-integration/) and [GitLab](/workers/ci-cd/builds/git-integration/gitlab-integration/) repository to your Cloudflare Worker, and will automatically deploy your code every time you push a change to a selected branch.
1010

1111
Adding a Git integration also lets you monitor build statuses directly in your Git provider using [check runs](/workers/ci-cd/builds/git-integration/github-integration/#check-run) or [commit statuses](/workers/ci-cd/builds/git-integration/gitlab-integration/#commit-status), allowing you to manage deployments without leaving your workflow.
1212

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ The build system uses the `name` argument in the wrangler.toml to determine whic
2525
:::note
2626
This does not apply to [Wrangler Environments](/workers/wrangler/environments/) if the Worker name before the `-<env_name>` suffix matches the name in wrangler.toml.
2727

28-
For example, a Worker named `my-worker-staging` on the dashboard can be deployed from a repository that contains a wrangler.toml with the arguemnts `name = my-worker` and `[env.staging]` using the deploy command `npx wrangler deploy --env staging`.
28+
For example, a Worker named `my-worker-staging` on the dashboard can be deployed from a repository that contains a wrangler.toml with the arguments `name = my-worker` and `[env.staging]` using the deploy command `npx wrangler deploy --env staging`.
2929
:::
3030

3131
### Missing wrangler.toml

src/content/docs/workers/get-started/dashboard.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ To create a Workers application:
3737

3838
To do more:
3939

40-
- Push your project to a GitHub or GitLab respoitory then [connect to Builds](/workers/ci-cd/builds/#get-started) to enable automatic builds and deployments.
40+
- Push your project to a GitHub or GitLab respoitory then [connect to builds](/workers/ci-cd/builds/#get-started) to enable automatic builds and deployments.
4141
- Review our [Examples](/workers/examples/) and [Tutorials](/workers/tutorials/) for inspiration.
4242
- Set up [bindings](/workers/runtime-apis/bindings/) to allow your Worker to interact with other resources and unlock new functionality.
4343
- Learn how to [test and debug](/workers/testing/) your Workers.

0 commit comments

Comments
 (0)