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
For more information about continuous deployment, see "[About continuous deployment](/actions/deployment/about-continuous-deployment)."
29
29
30
-
## 基本要求
30
+
## Prerequisites
31
31
32
-
您应该熟悉 {% data variables.product.prodname_actions %} 的语法。 更多信息请参阅“[Learn {% data variables.product.prodname_actions %}](/actions/learn-github-actions)”。
32
+
You should be familiar with the syntax for {% data variables.product.prodname_actions %}. For more information, see "[Learn {% data variables.product.prodname_actions %}](/actions/learn-github-actions)."
Concurrency ensures that only a single job or workflow using the same concurrency group will run at a time. You can use concurrency so that an environment has a maximum of one deployment in progress and one deployment pending at a time.
**Note:** `concurrency` and `environment` are not connected. The concurrency value can be any string; it does not need to be an environment name. Additionally, if another workflow uses the same environment but does not specify concurrency, that workflow will not be subject to any concurrency rules.
For example, when the following workflow runs, it will be paused with the status `pending` if any job or workflow that uses the `production` concurrency group is in progress. It will also cancel any job or workflow that uses the `production` concurrency group and has the status `pending`. This means that there will be a maximum of one running and one pending job or workflow in that uses the `production` concurrency group.
For guidance on writing deployment-specific steps, see "[Finding deployment examples](#finding-deployment-examples)."
136
136
137
-
## 查看部署历史记录
137
+
## Viewing deployment history
138
138
139
139
When a {% data variables.product.prodname_actions %} workflow deploys to an environment, the environment is displayed on the main page of the repository. For more information about viewing deployments to environments, see "[Viewing deployment history](/developers/overview/viewing-deployment-history)."
Every workflow run generates a real-time graph that illustrates the run progress. You can use this graph to monitor and debug deployments. For more information see, "[Using the visualization graph](/actions/monitoring-and-troubleshooting-workflows/using-the-visualization-graph)."
You can also view the logs of each workflow run and the history of workflow runs. For more information, see "[Viewing workflow run history](/actions/monitoring-and-troubleshooting-workflows/viewing-workflow-run-history)."
146
146
147
-
## 通过应用跟踪部署
147
+
## Tracking deployments through apps
148
148
149
149
{% ifversion fpt or ghec %}
150
150
If your personal account or organization on {% ifversion ghae %}{% data variables.product.product_name %}{% else %}{% data variables.product.product_location %}{% endif %} is integrated with Microsoft Teams or Slack, you can track deployments that use environments through Microsoft Teams or Slack. For example, you can receive notifications through the app when a deployment is pending approval, when a deployment is approved, or when the deployment status changes. For more information about integrating Microsoft Teams or Slack, see "[GitHub extensions and integrations](/github/customizing-your-github-workflow/exploring-integrations/github-extensions-and-integrations#team-communication-tools)."
@@ -154,7 +154,7 @@ You can also build an app that uses deployment and deployment status webhooks to
154
154
155
155
{% ifversion fpt or ghes or ghec %}
156
156
157
-
## 选择运行器
157
+
## Choosing a runner
158
158
159
159
You can run your deployment workflow on {% data variables.product.company_short %}-hosted runners or on self-hosted runners. Traffic from {% data variables.product.company_short %}-hosted runners can come from a [wide range of network addresses](/rest/reference/meta#get-github-meta-information). If you are deploying to an internal environment and your company restricts external traffic into private networks, {% data variables.product.prodname_actions %} workflows running on {% data variables.product.company_short %}-hosted runners may not be communicate with your internal services or resources. To overcome this, you can host your own runners. For more information, see "[About self-hosted runners](/actions/hosting-your-own-runners/about-self-hosted-runners)" and "[About GitHub-hosted runners](/actions/using-github-hosted-runners/about-github-hosted-runners)."
160
160
@@ -164,7 +164,7 @@ You can run your deployment workflow on {% data variables.product.company_short
164
164
165
165
You can use a status badge to display the status of your deployment workflow. {% data reusables.repositories.actions-workflow-status-badge-intro %}
Copy file name to clipboardExpand all lines: translations/zh-CN/content/actions/deployment/deploying-to-your-cloud-provider/deploying-to-google-kubernetes-engine.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,15 +14,15 @@ topics:
14
14
- CD
15
15
- Containers
16
16
- Google Kubernetes Engine
17
-
shortTitle: Deploy to Google Kubernetes Engine
17
+
shortTitle: 部署到 Google Kubernetes Engine
18
18
---
19
19
20
20
{% data reusables.actions.enterprise-beta %}
21
21
{% data reusables.actions.enterprise-github-hosted-runners %}
22
22
23
23
## 简介
24
24
25
-
This guide explains how to use {% data variables.product.prodname_actions %} to build a containerized application, push it to Google Container Registry (GCR), and deploy it to Google Kubernetes Engine (GKE) when there is a push to the `main` branch.
25
+
本指南介绍如何使用 {% data variables.product.prodname_actions %} 构建容器化应用程序,将其推送到 Google Container Registry (GCR),以及要推送到 `main` 分支时将其部署到 Google Kubernetes Engine (GKE)。
此程序显示如何为您的 GKE 集成创建服务帐户。 It explains how to create the account, add roles to it, retrieve its keys, and store them as a base64-encoded encrypted repository secret named `GKE_SA_KEY`.
Store the name of your project as a secret named `GKE_PROJECT`. For more information about how to store a secret, see "[Encrypted secrets](/actions/security-guides/encrypted-secrets)."
Kustomize 是用于管理 YAML 规范的可选工具。 After creating a `kustomization`file, the workflow below can be used to dynamically set fields of the image and pipe in the result to `kubectl`. 更多信息请参阅 [kustomize 的用法](https://github.com/kubernetes-sigs/kustomize#usage)。
Under the `env`key, change the value of `GKE_CLUSTER`to the name of your cluster, `GKE_ZONE`to your cluster zone, `DEPLOYMENT_NAME`to the name of your deployment, and `IMAGE`to the name of your image.
Copy file name to clipboardExpand all lines: translations/zh-CN/content/actions/deployment/security-hardening-your-deployments/about-security-hardening-with-openid-connect.md
+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
@@ -226,7 +226,7 @@ You could also use a `curl` command to request the JWT, using the following envi
Copy file name to clipboardExpand all lines: translations/zh-CN/content/actions/deployment/security-hardening-your-deployments/configuring-openid-connect-in-amazon-web-services.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -51,11 +51,11 @@ Edit the trust relationship to add the `sub` field to the validation conditions.
51
51
52
52
## 更新 {% data variables.product.prodname_actions %} 工作流程
53
53
54
-
To update your workflows for OIDC, you will need to make two changes to your YAML:
55
-
1.Add permissions settings for the token.
54
+
要更新 OIDC 的工作流程,您需要对 YAML 进行两项更改:
55
+
1.为令牌添加权限设置。
56
56
2. Use the [`aws-actions/configure-aws-credentials`](https://github.com/aws-actions/configure-aws-credentials) action to exchange the OIDC token (JWT) for a cloud access token.
57
57
58
-
### Adding permissions settings
58
+
### 添加权限设置
59
59
60
60
{% data reusables.actions.oidc-permissions-token %}
Copy file name to clipboardExpand all lines: translations/zh-CN/content/actions/deployment/security-hardening-your-deployments/configuring-openid-connect-in-azure.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,11 +44,11 @@ Additional guidance for configuring the identity provider:
44
44
45
45
## 更新 {% data variables.product.prodname_actions %} 工作流程
46
46
47
-
To update your workflows for OIDC, you will need to make two changes to your YAML:
48
-
1.Add permissions settings for the token.
47
+
要更新 OIDC 的工作流程,您需要对 YAML 进行两项更改:
48
+
1.为令牌添加权限设置。
49
49
2. Use the [`azure/login`](https://github.com/Azure/login) action to exchange the OIDC token (JWT) for a cloud access token.
50
50
51
-
### Adding permissions settings
51
+
### 添加权限设置
52
52
53
53
{% data reusables.actions.oidc-permissions-token %}
0 commit comments