Skip to content

Commit 6c1f952

Browse files
authored
Tuto migrate task from Airplane to Windmill (windmill-labs#463)
1 parent bb850f4 commit 6c1f952

File tree

10 files changed

+69
-55
lines changed

10 files changed

+69
-55
lines changed

docs/advanced/11_git_sync/index.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import DocCard from '@site/src/components/DocCard';
22

3-
# Sync Workspace to Remote Git Repository
3+
# Git Sync
44

55
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).
66

@@ -13,7 +13,7 @@ For all details on Version Control in Windmill, see [Version Control](../../adva
1313
<iframe
1414
style={{ aspectRatio: '16/9' }}
1515
src="https://www.youtube.com/embed/JqG0KNYWLx0?vq=hd1080"
16-
title="Sync Workspace to Remote Git Repository"
16+
title="Git Sync"
1717
frameBorder="0"
1818
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
1919
allowFullScreen

docs/advanced/12_deploy_to_prod/index.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ Windmill integration with Git repositories makes it possible to adopt a robust d
3838
The process is as follows:
3939
- Users iterate and make their changes in a "staging" Windmill workspace.
4040
- 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.
4343

4444
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.
4545

@@ -55,8 +55,8 @@ More details at:
5555
/>
5656
</div>
5757

58-
## Using Windmill CLI in GitHub actions
58+
## Using Windmill CLI in GitHub Actions
5959

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.
6161

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.

docs/advanced/13_version_control/index.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ import DocCard from '@site/src/components/DocCard';
44

55
Manage changes to scripts workflows, apps and resources using commits & push on remote repositories.
66

7-
## Sync Workspace to Remote Git Repository
7+
## Git Sync
88

99
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).
1010

1111
<iframe
1212
style={{ aspectRatio: '16/9' }}
1313
src="https://www.youtube.com/embed/JqG0KNYWLx0?vq=hd1080"
14-
title="Sync Workspace to Remote Git Repository"
14+
title="Git Sync"
1515
frameBorder="0"
1616
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
1717
allowFullScreen
@@ -20,13 +20,13 @@ From the workspace settings, you can set a [git_repository](../../integrations/g
2020

2121
<br/>
2222

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.
2424

2525
More details at:
2626

2727
<div class="grid grid-cols-2 gap-6 mb-4">
2828
<DocCard
29-
title="Sync Workspace to Remote Git Repository"
29+
title="Git Sync"
3030
description="Connect the Windmill workspace to a Git repository to automatically commit and push scripts, flows and apps to the repository on each deploy."
3131
href="/docs/advanced/git_sync"
3232
/>

docs/advanced/4_local_development/run_locally.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ You should see all your scripts, flows, apps inside the folder.
6363

6464
You can now edit the files directly as shown below.
6565

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).
6767

6868
## Deno / Bun
6969

docs/advanced/9_deploy_gh_gl/index.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Deploy to Prod using a Git Workflow
1+
# Deploy to prod using a Git Workflow
22

33
Windmill integration with Git repositories makes it possible to adopt a robust development process for your Windmill scripts, flows and apps.
44

@@ -11,10 +11,10 @@ For all details on Deployments to Prods, see [Deploy to Prod](../../advanced/12_
1111
The process is as follows:
1212
- Users iterate and make their changes in a "staging" Windmill workspace.
1313
- 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.
1616

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.
1818

1919
:::info
2020

@@ -30,25 +30,25 @@ Check out the [windmill-sync-example repository](https://github.com/windmill-lab
3030

3131
## Setup
3232

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/).
3434

3535
### GitHub repository setup
3636

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.
3838

3939
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.
4343

4444
### Windmill setup
4545

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.
4747
2. In Windmill workspace settings > Git sync tab, pick the `git_repository` resource and toggle On "Create one branch per deployed script/flow/app"
4848

49-
### GitHub actions setup
49+
### GitHub Actions setup
5050

5151
Two actions are needed.
5252

5353
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.

docs/core_concepts/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ On top of its editors to build endpoints, flows and apps, Windmill comes with a
179179
href="/docs/core_concepts/dedicated_workers"
180180
/>
181181
<DocCard
182-
title="Sync Workspace to Remote Git Repository"
182+
title="Git Sync"
183183
description="Connect the Windmill workspace to a Git repository to automatically commit and push scripts, flows and apps to the repository on each deploy."
184184
href="/docs/advanced/git_sync"
185185
/>

docs/integrations/git_repository.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ More:
88

99
<div class="grid grid-cols-2 gap-6 mb-4">
1010
<DocCard
11-
title="Sync Workspace to Remote Git Repository"
11+
title="Git Sync"
1212
description="Connect the Windmill workspace to a Git repository to automatically commit and push scripts, flows and apps to the repository on each deploy."
1313
href="/docs/advanced/git_sync"
1414
/>
@@ -17,7 +17,7 @@ More:
1717
<iframe
1818
style={{ aspectRatio: '16/9' }}
1919
src="https://www.youtube.com/embed/JqG0KNYWLx0?vq=hd1080"
20-
title="Sync Workspace to Remote Git Repository"
20+
title="Git Sync"
2121
frameBorder="0"
2222
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
2323
allowFullScreen

docs/misc/7_plans_details/index.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ No commitment or credit card required.
2424
- Community support on [Discord](https://discord.com/invite/V7PM2YHsPB).
2525
- [Granular permissions](../../core_concepts/16_roles_and_permissions/index.mdx), [groups](../../core_concepts/8_groups_and_folders/index.mdx), [folders](../../core_concepts/8_groups_and_folders/index.mdx) and [public apps](../../apps/8_public_apps.md) available.
2626
- [Deployment from GitHub](../../advanced/9_deploy_gh_gl/index.md).
27-
- [Sync Workspace to Remote Git Repository](../../advanced/11_git_sync/index.mdx).
27+
- [Git Sync](../../advanced/11_git_sync/index.mdx).
2828
- [Concurrency Limits](../../core_concepts/21_concurrency_limits/index.md).
2929
- [Content Search](../../core_concepts/26_content_search/index.md).
3030
- [Global CSS on App Editor](../../apps/9_css_editor.mdx).
@@ -38,7 +38,7 @@ Designed for small teams automating processes.
3838
- Includes all Community edition features.
3939
- [Audit logs](../../core_concepts/14_audit_logs/index.mdx) with a 7-day retention period.
4040
- [Deployment from GitHub](../../advanced/9_deploy_gh_gl/index.md).
41-
- [Sync Workspace to Remote Git Repository](../../advanced/11_git_sync/index.mdx).
41+
- [Git Sync](../../advanced/11_git_sync/index.mdx).
4242
- [Concurrency Limits](../../core_concepts/21_concurrency_limits/index.md).
4343
- [Content Search](../../core_concepts/26_content_search/index.md).
4444
- [Global CSS on App Editor](../../apps/9_css_editor.mdx).
@@ -62,7 +62,7 @@ Dedicated support, guidance and infrastructure for advanced capabilities.
6262
- [Audit logs](../../core_concepts/14_audit_logs/index.mdx) with a 60-day retention period.
6363
- [Deploy to Staging/Prod Web UI](../../core_concepts/12_staging_prod/index.md).
6464
- [Deployment from GitHub](../../advanced/9_deploy_gh_gl/index.md).
65-
- [Sync Workspace to Remote Git Repository](../../advanced/11_git_sync/index.mdx).
65+
- [Git Sync](../../advanced/11_git_sync/index.mdx).
6666
- [Concurrency Limits](../../core_concepts/21_concurrency_limits/index.md).
6767
- [Content Search](../../core_concepts/26_content_search/index.md).
6868
- [Global CSS on App Editor](../../apps/9_css_editor.mdx).
@@ -101,7 +101,7 @@ Designed for small businesses, young startups, nonprofits & universities.
101101
- [Dedicated Workers / High Throughput](../../core_concepts/25_dedicated_workers/index.mdx).
102102
- [Worker Group Management UI](../11_worker_group_management_ui/index.mdx).
103103
- [Deploy to Staging/Prod Web UI](../../core_concepts/12_staging_prod/index.md).
104-
- [Sync Workspace to Remote Git Repository](../../advanced/11_git_sync/index.mdx).
104+
- [Git Sync](../../advanced/11_git_sync/index.mdx).
105105
- [Global CSS on App Editor](../../apps/9_css_editor.mdx).
106106
- [Concurrency Limits](../../core_concepts/21_concurrency_limits/index.md).
107107
- [Content Search](../../core_concepts/26_content_search/index.md).
@@ -124,7 +124,7 @@ Designed for companies requiring dedicated support, guidance and advanced infras
124124
- Prometheus Metrics.
125125
- [Dedicated Workers / High Throughput](../../core_concepts/25_dedicated_workers/index.mdx).
126126
- [Worker Group Management UI](../11_worker_group_management_ui/index.mdx).
127-
- [Sync Workspace to Remote Git Repository](../../advanced/11_git_sync/index.mdx).
127+
- [Git Sync](../../advanced/11_git_sync/index.mdx).
128128
- [Deploy to Staging/Prod Web UI](../../core_concepts/12_staging_prod/index.md).
129129
- [Global CSS on App Editor](../../apps/9_css_editor.mdx).
130130
- [Concurrency Limits](../../core_concepts/21_concurrency_limits/index.md).

0 commit comments

Comments
 (0)