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: docs/advanced/11_git_sync/index.mdx
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
importDocCardfrom'@site/src/components/DocCard';
2
2
3
-
# Sync Workspace to Remote Git Repository
3
+
# Git Sync
4
4
5
5
From the workspace settings, you can set a [git_repository](../../integrations/git_repository.mdx) resource on which the workspace will automatically commit and push scripts, flows and apps to the repository on each [deploy](../../core_concepts/0_draft_and_deploy/index.mdx).
6
6
@@ -13,7 +13,7 @@ For all details on Version Control in Windmill, see [Version Control](../../adva
Copy file name to clipboardExpand all lines: docs/advanced/12_deploy_to_prod/index.mdx
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -38,8 +38,8 @@ Windmill integration with Git repositories makes it possible to adopt a robust d
38
38
The process is as follows:
39
39
- Users iterate and make their changes in a "staging" Windmill workspace.
40
40
- Every time a Windmill App, Flow or Script is deployed to that workspace (via Windmill's UI), Windmill automatically commits it to this repo and creates one branch per app/flow/script.
41
-
- On every commit from Windmill, PRs are automatically created via a GitHub action. Approved GitHub users can review and merge those PRs.
42
-
- Every time a PR is merged, another GitHub action automatically deploys the change to a "production" Windmill workspace.
41
+
- On every commit from Windmill, PRs are automatically created via a GitHub Action. Approved GitHub users can review and merge those PRs.
42
+
- Every time a PR is merged, another GitHub Action automatically deploys the change to a "production" Windmill workspace.
43
43
44
44
This gives the flexibility to fully test new Windmill scripts, flows and apps, while having them version-controlled and deployed in an automated way to the production environment.
45
45
@@ -55,8 +55,8 @@ More details at:
55
55
/>
56
56
</div>
57
57
58
-
## Using Windmill CLI in GitHub actions
58
+
## Using Windmill CLI in GitHub Actions
59
59
60
-
Finally, you can define your own GitHub actions to pull Windmill workspace regularly from GitHub using [Windmill CLI](../3_cli/index.mdx). To automatically deploy a PR to the Windmill workspace, the [push-on-merge.yaml](https://github.com/windmill-labs/windmill-sync-example/blob/main/.github/workflows/push-on-merge.yaml) can be used.
60
+
Finally, you can define your own GitHub Actions to pull Windmill workspace regularly from GitHub using [Windmill CLI](../3_cli/index.mdx). To automatically deploy a PR to the Windmill workspace, the [push-on-merge.yaml](https://github.com/windmill-labs/windmill-sync-example/blob/main/.github/workflows/push-on-merge.yaml) can be used.
61
61
62
-
And another GitHub action can be created to regularly pull Windmill workspace to the GitHub repo using Windmill CLI. This action can be run on a schedule to keep the repo and the workspace in sync.
62
+
And another GitHub Action can be created to regularly pull Windmill workspace to the GitHub repo using Windmill CLI. This action can be run on a schedule to keep the repo and the workspace in sync.
Copy file name to clipboardExpand all lines: docs/advanced/13_version_control/index.mdx
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -4,14 +4,14 @@ import DocCard from '@site/src/components/DocCard';
4
4
5
5
Manage changes to scripts workflows, apps and resources using commits & push on remote repositories.
6
6
7
-
## Sync Workspace to Remote Git Repository
7
+
## Git Sync
8
8
9
9
From the workspace settings, you can set a [git_repository](../../integrations/git_repository.mdx) resource on which the workspace will automatically commit and push scripts, flows and apps to the repository on each [deploy](../../core_concepts/0_draft_and_deploy/index.mdx).
@@ -20,13 +20,13 @@ From the workspace settings, you can set a [git_repository](../../integrations/g
20
20
21
21
<br/>
22
22
23
-
Sync Workspace to Remote Git Repository is [Cloud and Self-Hosted Enterprise Edition](/pricing) only.
23
+
Git Sync is [Cloud and Self-Hosted Enterprise Edition](/pricing) only.
24
24
25
25
More details at:
26
26
27
27
<divclass="grid grid-cols-2 gap-6 mb-4">
28
28
<DocCard
29
-
title="Sync Workspace to Remote Git Repository"
29
+
title="Git Sync"
30
30
description="Connect the Windmill workspace to a Git repository to automatically commit and push scripts, flows and apps to the repository on each deploy."
Copy file name to clipboardExpand all lines: docs/advanced/4_local_development/run_locally.mdx
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -63,7 +63,7 @@ You should see all your scripts, flows, apps inside the folder.
63
63
64
64
You can now edit the files directly as shown below.
65
65
66
-
Once you have finished developement, you can either [push the files directly to your remote](#pushing-your-scripts-to-windmill) or setup [GitHub action to push changes to your workspace on commit](https://github.com/windmill-labs/windmill-sync-example).
66
+
Once you have finished developement, you can either [push the files directly to your remote](#pushing-your-scripts-to-windmill) or setup [GitHub Action to push changes to your workspace on commit](https://github.com/windmill-labs/windmill-sync-example).
Copy file name to clipboardExpand all lines: docs/advanced/9_deploy_gh_gl/index.md
+12-12Lines changed: 12 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
# Deploy to Prod using a Git Workflow
1
+
# Deploy to prod using a Git Workflow
2
2
3
3
Windmill integration with Git repositories makes it possible to adopt a robust development process for your Windmill scripts, flows and apps.
4
4
@@ -11,10 +11,10 @@ For all details on Deployments to Prods, see [Deploy to Prod](../../advanced/12_
11
11
The process is as follows:
12
12
- Users iterate and make their changes in a "staging" Windmill workspace.
13
13
- Every time a Windmill App, Flow or Script is deployed to that workspace (via Windmill's UI), Windmill automatically commits it to this repo and creates one branch per app/flow/script.
14
-
- On every commit from Windmill, PRs are automatically created via a GitHub action. Approved GitHub users can review and merge those PRs.
15
-
- Every time a PR is merged, another GitHub action automatically deploys the change to a "production" Windmill workspace.
14
+
- On every commit from Windmill, PRs are automatically created via a [GitHub Action](https://docs.github.com/en/actions). Approved GitHub users can review and merge those PRs.
15
+
- Every time a PR is merged, another GitHub Action automatically deploys the change to a "production" Windmill workspace.
16
16
17
-
This gives the flexibility to fully test new Windmill scripts, flows and apps, while having them version-controlled and deployed in an automated way to the production environment.
17
+
This gives the flexibility to fully test new Windmill scripts, flows and apps, while having them [version-controlled](../13_version_control/index.mdx) and deployed in an automated way to the production environment.
18
18
19
19
:::info
20
20
@@ -30,25 +30,25 @@ Check out the [windmill-sync-example repository](https://github.com/windmill-lab
30
30
31
31
## Setup
32
32
33
-
Note: this is the detailed setup steps for a GitHub repository. It will need to be adapted for GitLab.
33
+
Note: this is the detailed setup steps for a [GitHub](https://github.com/) repository. It will need to be adapted for [GitLab](https://about.gitlab.com/).
34
34
35
35
### GitHub repository setup
36
36
37
-
First the GitHub repo needs to be set up and Windmill needs to be able to commit to it.
37
+
First, the GitHub repo needs to be set up and Windmill needs to be able to commit to it.
38
38
39
39
1. Create a GitHub repository.
40
-
1. Generate a [GitHub token with write permission](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#creating-a-fine-grained-personal-access-token) to this repository. This is n@ecessary for Windmill to push commits to the repo every time a change is made to the staging workspace.
41
-
1. In the repository settings > Actions > General, tick the [Allow GitHub Actions to create and approve pull requests](https://docs.github.com/en/enterprise-server@3.10/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-github-actions-settings-for-a-repository#preventing-github-actions-from-creating-or-approving-pull-requests). This is necessary for the GitHub action automatically creating PRs when Windmill commits a change.
42
-
1. From Windmill, create a token under User settings > Token and [save it as a secret](https://docs.github.com/en/actions/security-guides/using-secrets-in-github-actions#creating-secrets-for-a-repository) named `WMILL_TOKEN` in the repo settings > "Secret and Variable" > "Actions". This is necessary for Windmill to push to the production workspace.
40
+
1. Generate a [GitHub token with write permission](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#creating-a-fine-grained-personal-access-token) to this repository. This is necessary for Windmill to push commits to the repo every time a change is made to the staging workspace.
41
+
1. In the repository Settings > Actions > General, tick the [Allow GitHub Actions to create and approve pull requests](https://docs.github.com/en/enterprise-server@3.10/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-github-actions-settings-for-a-repository#preventing-github-actions-from-creating-or-approving-pull-requests). This is necessary for the GitHub Action automatically creating PRs when Windmill commits a change.
42
+
2. From Windmill, create a [token](../../core_concepts/4_webhooks/index.mdx#user-token) under User settings > Token and [save it as a secret](https://docs.github.com/en/actions/security-guides/using-secrets-in-github-actions#creating-secrets-for-a-repository) named `WMILL_TOKEN` in the repo Settings > "Secret and Variable" > "Actions". This is necessary for Windmill to push to the production workspace.
43
43
44
44
### Windmill setup
45
45
46
-
1. In Windmill, create a [git_repository](https://hub.windmill.dev/resource_types/135/git_repository)[resource](../../core_concepts/3_resources_and_types/index.mdx) pointing to the GitHub repository and containing the token generated previously. You URL should be `https://[USERNAME]:[TOKEN]@github.com/[ORG|USER]/[REPO_NAME].git`. Note that you have the possibility to input a custom branch name and a subfolder in this resource. Given that we are going to request Windmill to create one branch per script/flow/app, setting a custom branch will have no effect. However, if you wish to persist the windmill workspace in a subfolder of your repository, you can set it here.
46
+
1. In Windmill, create a [git_repository](https://hub.windmill.dev/resource_types/135/git_repository)[resource](../../core_concepts/3_resources_and_types/index.mdx) pointing to the GitHub repository and containing the token generated previously. You URL should be `https://[USERNAME]:[TOKEN]@github.com/[ORG|USER]/[REPO_NAME].git`. Note that you have the possibility to input a custom branch name and a subfolder in this resource. Given that we are going to request Windmill to create one branch per script/flow/app, setting a custom branch will have no effect. However, if you wish to persist the Windmill workspace in a subfolder of your repository, you can set it here.
47
47
2. In Windmill workspace settings > Git sync tab, pick the `git_repository` resource and toggle On "Create one branch per deployed script/flow/app"
48
48
49
-
### GitHub actions setup
49
+
### GitHub Actions setup
50
50
51
51
Two actions are needed.
52
52
53
53
1. The first one to automatically create a PR when Windmill commits a change after a user deployed a script/flow/app in the staging workspace. The workflow file is available in [the example repo](https://github.com/windmill-labs/windmill-sync-example/blob/main/.github/workflows/open-pr-on-commit.yaml). All branches created by Windmill will have a `wm_deploy/` prefix, which is handy to trigger this action only when a branch matching this pattern is created.
54
-
1. The second one to automatically push the content of the repo to the Windmill production workspace when a PR is merged. The workflow file is available in [the example repo](https://github.com/windmill-labs/windmill-sync-example/blob/main/.github/workflows/push-on-merge.yaml). This action uses the [GitHub CLI](https://cli.github.com/) which is available by default on GitHub action workers.
54
+
1. The second one to automatically push the content of the repo to the Windmill production workspace when a PR is merged. The workflow file is available in [the example repo](https://github.com/windmill-labs/windmill-sync-example/blob/main/.github/workflows/push-on-merge.yaml). This action uses the [GitHub CLI](https://cli.github.com/) which is available by default on GitHub Action workers.
Copy file name to clipboardExpand all lines: docs/core_concepts/index.mdx
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -179,7 +179,7 @@ On top of its editors to build endpoints, flows and apps, Windmill comes with a
179
179
href="/docs/core_concepts/dedicated_workers"
180
180
/>
181
181
<DocCard
182
-
title="Sync Workspace to Remote Git Repository"
182
+
title="Git Sync"
183
183
description="Connect the Windmill workspace to a Git repository to automatically commit and push scripts, flows and apps to the repository on each deploy."
Copy file name to clipboardExpand all lines: docs/integrations/git_repository.mdx
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ More:
8
8
9
9
<divclass="grid grid-cols-2 gap-6 mb-4">
10
10
<DocCard
11
-
title="Sync Workspace to Remote Git Repository"
11
+
title="Git Sync"
12
12
description="Connect the Windmill workspace to a Git repository to automatically commit and push scripts, flows and apps to the repository on each deploy."
0 commit comments