Skip to content

Commit 838a288

Browse files
authored
Merge branch 'main' into patch-1
2 parents 5576c07 + 48b9141 commit 838a288

1,163 files changed

Lines changed: 12008 additions & 6502 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

translations/de-DE/content/actions/creating-actions/creating-a-composite-run-steps-action.md

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -56,26 +56,26 @@ Before you begin, you'll create a {% data variables.product.product_name %} repo
5656
{% raw %}
5757
**action.yml**
5858
```yaml
59-
Name: 'Hello World'
60-
Beschreibung: 'Greet someone'
59+
name: 'Hello World'
60+
description: 'Greet someone'
6161
inputs:
62-
who-to-greet: 'id of input
62+
who-to-greet: # id of input
6363
description: 'Who to greet'
6464
required: true
6565
default: 'World'
6666
outputs:
67-
zuzufällige Zahl:
68-
Beschreibung: "Zufallszahl"
69-
Wert:{{ steps.random-number-generator.outputs.random-id }}
70-
läuft:
71-
mit: "composite"
72-
Schritten:
73-
- laufen:{{ inputs.who-to-greet }}echo
67+
random-number:
68+
description: "Random number"
69+
value: ${{ steps.random-number-generator.outputs.random-id }}
70+
runs:
71+
using: "composite"
72+
steps:
73+
- run: echo Hello ${{ inputs.who-to-greet }}.
7474
shell: bash
7575
- id: random-number-generator
76-
run: echo "::set-output name=random-id::'(echo $RANDOM)"
76+
run: echo "::set-output name=random-id::$(echo $RANDOM)"
7777
shell: bash
78-
- run: '{{ github.action_path }}/goodbye.sh
78+
- run: ${{ github.action_path }}/goodbye.sh
7979
shell: bash
8080
```
8181
{% endraw %}
@@ -109,20 +109,20 @@ Copy the workflow code into a `.github/workflows/main.yml` file in another repos
109109
{% raw %}
110110
**.github/workflows/main.yml**
111111
```yaml
112-
zu: [push]
112+
on: [push]
113113
114-
Jobs:
114+
jobs:
115115
hello_world_job:
116-
läuft auf: ubuntu-latest
117-
Name: Ein Job, um Hallo zu sagen
118-
Schritte:
119-
- verwendet: aktionen/checkout@v2
116+
runs-on: ubuntu-latest
117+
name: A job to say hello
118+
steps:
119+
- uses: actions/checkout@v2
120120
- id: foo
121-
verwendet: actions/hello-world-composite-run-steps-action@v1
122-
mit:
121+
uses: actions/hello-world-composite-run-steps-action@v1
122+
with:
123123
who-to-greet: 'Mona the Octocat'
124-
- run: echo random-{{ steps.foo.outputs.random-number }}
125-
number
124+
- run: echo random-number ${{ steps.foo.outputs.random-number }}
125+
shell: bash
126126
```
127127
{% endraw %}
128128

translations/de-DE/content/actions/creating-actions/metadata-syntax-for-github-actions.md

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ läuft:
117117
{% endraw %}
118118

119119
#### `outputs.<output_id>.value`
120+
120121
**Erforderliche** Der Wert, dem der Ausgabeparameter zugeordnet wird. Sie können dies auf eine `Zeichenfolge` oder einen Ausdruck mit Kontext festlegen. Sie können z. B. die `Schritte` Kontext verwenden, um den `Wert` einer Ausgabe auf den Ausgabewert eines Schritts festzulegen.
121122

122123
For more information on how to use context and expression syntax, see "[Context and expression syntax for {% data variables.product.prodname_actions %}](/actions/reference/context-and-expression-syntax-for-github-actions)".
@@ -204,18 +205,21 @@ In diesem Beispiel läuft `cleanup.js` nur auf Linux-basierten Runnern:
204205

205206
**Erforderliche** Die Ausführungsschritte, die Sie in dieser Aktion ausführen möchten.
206207

207-
##### `runs.steps.run`
208+
##### `runs.steps[*].run`
208209

209210
**Erforderliche** Der Befehl, den Sie ausführen möchten. Dies kann inline oder ein Skript in Ihrem Aktions-Repository sein:
211+
212+
{% raw %}
210213
```yaml
211214
läuft:
212215
mit: "composite"
213216
Schritte:
214217
- ausführen:{{ github.action_path }}/test/script.sh
215218
Shell: bash
216219
```
220+
{% endraw %}
217221

218-
Alternativ können Sie `$GITHUB_ACTION_PATH`verwenden:
222+
Alternatively, you can use `$GITHUB_ACTION_PATH`:
219223

220224
```yaml
221225
läuft:
@@ -225,27 +229,27 @@ läuft:
225229
Shell: bash
226230
```
227231

228-
Weitere Informationen finden Sie unter "[`github context`](/actions/reference/context-and-expression-syntax-for-github-actions#github-context)".
232+
For more information, see "[`github context`](/actions/reference/context-and-expression-syntax-for-github-actions#github-context)".
229233

230-
##### `runs.steps.shell`
234+
##### `runs.steps[*].shell`
231235

232-
**Erforderliche** Die Shell, in der Sie den Befehl ausführen möchten. Sie können eine der hier aufgeführten Shells [](/actions/reference/workflow-syntax-for-github-actions#using-a-specific-shell)verwenden.
236+
**Required** The shell where you want to run the command. You can use any of the shells listed [here](/actions/reference/workflow-syntax-for-github-actions#using-a-specific-shell).
233237

234-
##### `runs.steps.name`
238+
##### `runs.steps[*].name`
235239

236-
**Optionaler** Der Name des zusammengesetzten Ausführungsschritts.
240+
**Optional** The name of the composite run step.
237241

238-
##### `runs.steps.id`
242+
##### `runs.steps[*].id`
239243

240-
**Optionaler** Ein eindeutiger Bezeichner für den Schritt. Anhand der `id` können Sie in Kontexten auf den Schritt verweisen. Weitere Informationen findest Du unter "[Kontext- und Ausdrucks-Syntax für {% data variables.product.prodname_actions %}](/actions/reference/context-and-expression-syntax-for-github-actions)".
244+
**Optional** A unique identifier for the step. Anhand der `id` können Sie in Kontexten auf den Schritt verweisen. Weitere Informationen findest Du unter "[Kontext- und Ausdrucks-Syntax für {% data variables.product.prodname_actions %}](/actions/reference/context-and-expression-syntax-for-github-actions)".
241245

242-
##### `runs.steps.env`
246+
##### `runs.steps[*].env`
243247

244-
**Optionale** Legt eine `Zuordnung` von Umgebungsvariablen nur für diesen Schritt fest. If you want to modify the environment variable stored in the workflow, use {% if currentVersion == "free-pro-team@latest" or currentVersion ver_gt "enterprise-server@2.22" %}`echo "{name}={value}" >> $GITHUB_ENV`{% else %}`echo "::set-env name={name}::{value}"`{% endif %} in a composite run step.
248+
**Optional** Sets a `map` of environment variables for only that step. If you want to modify the environment variable stored in the workflow, use {% if currentVersion == "free-pro-team@latest" or currentVersion ver_gt "enterprise-server@2.22" %}`echo "{name}={value}" >> $GITHUB_ENV`{% else %}`echo "::set-env name={name}::{value}"`{% endif %} in a composite run step.
245249

246-
##### `runs.steps.working-directory`
250+
##### `runs.steps[*].working-directory`
247251

248-
**Optionale** Gibt das Arbeitsverzeichnis an, in dem der Befehl ausgeführt wird.
252+
**Optional** Specifies the working directory where the command is run.
249253

250254
### `runs` for Docker actions
251255

translations/de-DE/content/actions/guides/about-continuous-integration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Zum Erstellen und Testen des Codes ist ein Server erforderlich. Sie können Aktu
2525

2626
### Informationen zur kontinuierlichen Integration mit {% data variables.product.prodname_actions %}
2727

28-
CI mit {% data variables.product.prodname_actions %} bietet Workflows, die den Code in Ihrem Repository erstellen und Ihre Tests ausführen können. Workflows können auf {% data variables.product.prodname_dotcom %}gehosteten virtuellen Maschinen oder auf Computern ausgeführt werden, die Sie selbst hosten. Weitere Informationen finden Sie unter "[Virtuelle Umgebungen für {% data variables.product.prodname_dotcom %}gehostete Läufer](/actions/automating-your-workflow-with-github-actions/virtual-environments-for-github-hosted-runners)" und "[über selbst gehostete Läufer](/actions/automating-your-workflow-with-github-actions/about-self-hosted-runners)".
28+
CI mit {% data variables.product.prodname_actions %} bietet Workflows, die den Code in Ihrem Repository erstellen und Ihre Tests ausführen können. Workflows können auf {% data variables.product.prodname_dotcom %}gehosteten virtuellen Maschinen oder auf Computern ausgeführt werden, die Sie selbst hosten. For more information, see "[Virtual environments for {% data variables.product.prodname_dotcom %}-hosted runners](/actions/automating-your-workflow-with-github-actions/virtual-environments-for-github-hosted-runners)" and "[About self-hosted runners](/actions/automating-your-workflow-with-github-actions/about-self-hosted-runners)."
2929

3030
Sie können Ihren CI-Workflow so konfigurieren, dass er ausgeführt wird, wenn ein {% data variables.product.product_name %} Ereignis auftritt (z. B. wenn neuer Code an Ihr Repository übertragen wird), nach einem festgelegten Zeitplan oder wenn ein externes Ereignis mithilfe des Repository-Dispatch-Webhooks auftritt.
3131

translations/de-DE/content/actions/guides/building-and-testing-nodejs.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,9 +193,9 @@ steps:
193193

194194
{% data reusables.github-actions.setup-node-intro %}
195195

196-
Um Dich bei Deiner privaten Registry zu authentifizieren, musst Du in Deinen Repository-Einstellungen Dein npm-Authentifizierungs-Token als Geheimnis ablegen. Erstelle z.B. ein Geheimnis namens `NPM_TOKEN`. Weitere Informationen findest Du unter „[Verschlüsselte Geheimnisse erstellen und verwenden](/actions/automating-your-workflow-with-github-actions/creating-and-using-encrypted-secrets)“.
196+
To authenticate to your private registry, you'll need to store your npm authentication token as a secret. For example, create a repository secret called `NPM_TOKEN`. Weitere Informationen findest Du unter „[Verschlüsselte Geheimnisse erstellen und verwenden](/actions/automating-your-workflow-with-github-actions/creating-and-using-encrypted-secrets)“.
197197

198-
Im folgenden Beispiel enthält das Geheimnis `NPM_TOKEN` den npm-Authentifizierungs-Token. Die Aktion `setup-node` konfiguriert die Datei *.npmrc*, um den npm-Authentifizierung-Token aus der Umgebungsvariablen `NODE_AUTH_TOKEN` zu lesen. Wenn Du die Aktion `setup-node` verwendest, um eine Datei *.npmrc* zu erstellen, musst Du die Umgebungsvariable `NPM_AUTH_TOKEN` auf das Geheimnis setzen, das Deinen npm-Authentifizierungs-Token enthält.
198+
Im folgenden Beispiel enthält das Geheimnis `NPM_TOKEN` den npm-Authentifizierungs-Token. Die Aktion `setup-node` konfiguriert die Datei *.npmrc*, um den npm-Authentifizierung-Token aus der Umgebungsvariablen `NODE_AUTH_TOKEN` zu lesen. When using the `setup-node` action to create an *.npmrc* file, you must set the `NODE_AUTH_TOKEN` environment variable with the secret that contains your npm authentication token.
199199

200200
Bevor Du Abhängigkeiten installierst, verwende die Aktion `setup-node`, um die Datei *.npmrc* zu erstellen. Die Aktion hat zwei Eingabeparameter. Der Parameter `node-version` legt die Version von Node.js fest und der Parameter `registry-url` bestimmt die Standard-Registry. Wenn Deine Paket-Registry Geltungsbereiche verwendet, musst Du den Parameter `scope` verwenden. Weitere Informationen findest Du unter [`npm-scope`](https://docs.npmjs.com/misc/scope).
201201

translations/de-DE/content/actions/guides/building-and-testing-powershell.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ The `always()` function configures the job to continue processing even if there
214214

215215
### Publishing to PowerShell Gallery
216216

217-
You can configure your workflow to publish your PowerShell module to the PowerShell Gallery when your CI tests pass. You can use repository secrets to store any tokens or credentials needed to publish your package. Weitere Informationen findest Du unter "[Verschlüsselte Geheimnisse erstellen und verwenden](/github/automating-your-workflow-with-github-actions/creating-and-using-encrypted-secrets)".
217+
You can configure your workflow to publish your PowerShell module to the PowerShell Gallery when your CI tests pass. You can use secrets to store any tokens or credentials needed to publish your package. Weitere Informationen findest Du unter "[Verschlüsselte Geheimnisse erstellen und verwenden](/github/automating-your-workflow-with-github-actions/creating-and-using-encrypted-secrets)".
218218

219219
The following example creates a package and uses `Publish-Module` to publish it to the PowerShell Gallery:
220220

translations/de-DE/content/actions/guides/building-and-testing-python.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ jobs:
391391

392392
You can configure your workflow to publish your Python package to any package registry you'd like when your CI tests pass.
393393

394-
You can store any access tokens or credentials needed to publish your package using repository secrets. The following example creates and publishes a package to PyPI using `twine` and `dist`. Weitere Informationen findest Du unter "[Verschlüsselte Geheimnisse erstellen und verwenden](/github/automating-your-workflow-with-github-actions/creating-and-using-encrypted-secrets)".
394+
You can store any access tokens or credentials needed to publish your package using secrets. The following example creates and publishes a package to PyPI using `twine` and `dist`. Weitere Informationen findest Du unter "[Verschlüsselte Geheimnisse erstellen und verwenden](/github/automating-your-workflow-with-github-actions/creating-and-using-encrypted-secrets)".
395395

396396
{% raw %}
397397
```yaml
Lines changed: 148 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,148 @@
1+
---
2+
title: Deploying to Amazon Elastic Container Service
3+
intro: You can deploy to Amazon Elastic Container Service (ECS) as part of your continuous deployment (CD) workflows.
4+
product: '{% data reusables.gated-features.actions %}'
5+
versions:
6+
free-pro-team: '*'
7+
enterprise-server: '>=2.22'
8+
---
9+
10+
{% data reusables.actions.enterprise-beta %}
11+
{% data reusables.actions.enterprise-github-hosted-runners %}
12+
13+
### Einführung
14+
15+
This guide explains how to use {% data variables.product.prodname_actions %} to build a containerized application, push it to [Amazon Elastic Container Registry (ECR)](https://aws.amazon.com/ecr/), and deploy it to [Amazon Elastic Container Service (ECS)](https://aws.amazon.com/ecs/).
16+
17+
On every new release in your {% data variables.product.company_short %} repository, the {% data variables.product.prodname_actions %} workflow builds and pushes a new container image to Amazon ECR, and then deploys a new task definition to Amazon ECS.
18+
19+
### Vorrausetzungen
20+
21+
Before creating your {% data variables.product.prodname_actions %} workflow, you will first need to complete the following setup steps for Amazon ECR and ECS:
22+
23+
1. Create an Amazon ECR repository to store your images.
24+
25+
For example, using [the AWS CLI](https://aws.amazon.com/cli/):
26+
27+
{% raw %}```bash{:copy}
28+
aws ecr create-repository \ --repository-name MY_ECR_REPOSITORY \ --region MY_AWS_REGION
29+
```{% endraw %}
30+
31+
Ensure that you use the same Amazon ECR repository name (represented here by `MY_ECR_REPOSITORY`) for the `ECR_REPOSITORY` variable in the workflow below.
32+
33+
Ensure that you use the same AWS region value for the `AWS_REGION` (represented here by `MY_AWS_REGION`) variable in the workflow below.
34+
35+
2. Create an Amazon ECS task definition, cluster, and service.
36+
37+
For details, follow the [Getting started wizard on the Amazon ECS console](https://us-east-2.console.aws.amazon.com/ecs/home?region=us-east-2#/firstRun), or the [Getting started guide](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/getting-started-fargate.html) in the Amazon ECS documentation.
38+
39+
Ensure that you note the names you set for the Amazon ECS service and cluster, and use them for the `ECS_SERVICE` and `ECS_CLUSTER` variables in the workflow below.
40+
41+
3. Store your Amazon ECS task definition as a JSON file in your {% data variables.product.company_short %} repository.
42+
43+
The format of the file should be the same as the output generated by:
44+
45+
{% raw %}```bash{:copy}
46+
aws ecs register-task-definition --generate-cli-skeleton
47+
```{% endraw %}
48+
49+
Ensure that you set the `ECS_TASK_DEFINITION` variable in the workflow below as the path to the JSON file.
50+
51+
Ensure that you set the `CONTAINER_NAME` variable in the workflow below as the container name in the `containerDefinitions` section of the task definition.
52+
53+
4. Create {% data variables.product.prodname_actions %} secrets named `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY` to store the values for your Amazon IAM access key.
54+
55+
For more information on creating secrets for {% data variables.product.prodname_actions %}, see "[Encrypted secrets](/actions/reference/encrypted-secrets#creating-encrypted-secrets-for-a-repository)."
56+
57+
See the documentation for each action used below for the recommended IAM policies for the IAM user, and methods for handling the access key credentials.
58+
59+
### Creating the workflow
60+
61+
Once you've completed the prerequisites, you can proceed with creating the workflow.
62+
63+
The following example workflow demonstrates how to build a container image and push it to Amazon ECR. It then updates the task definition with the new image ID, and deploys the task definition to Amazon ECS.
64+
65+
Ensure that you provide your own values for all the variables in the `env` key of the workflow.
66+
67+
{% raw %}
68+
```yaml{:copy}
69+
name: Deploy to Amazon ECS
70+
71+
on:
72+
release:
73+
types: [ created ]
74+
75+
env:
76+
AWS_REGION: MY_AWS_REGION # set this to your preferred AWS region, e.g. us-west-1
77+
ECR_REPOSITORY: MY_ECR_REPOSITORY # set this to your Amazon ECR repository name
78+
ECS_SERVICE: MY_ECS_SERVICE # set this to your Amazon ECS service name
79+
ECS_CLUSTER: MY_ECS_CLUSTER # set this to your Amazon ECS cluster name
80+
ECS_TASK_DEFINITION: MY_ECS_TASK_DEFINITION # set this to the path to your Amazon ECS task definition
81+
# file, e.g. .aws/task-definition.json
82+
CONTAINER_NAME: MY_CONTAINER_NAME # set this to the name of the container in the
83+
# containerDefinitions section of your task definition
84+
85+
defaults:
86+
run:
87+
shell: bash
88+
89+
jobs:
90+
deploy:
91+
name: Deploy
92+
runs-on: ubuntu-latest
93+
94+
steps:
95+
- name: Checkout
96+
uses: actions/checkout@v2
97+
98+
- name: Configure AWS credentials
99+
uses: aws-actions/configure-aws-credentials@v1
100+
with:
101+
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
102+
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
103+
aws-region: $AWS_REGION
104+
105+
- name: Login to Amazon ECR
106+
id: login-ecr
107+
uses: aws-actions/amazon-ecr-login@v1
108+
109+
- name: Build, tag, and push image to Amazon ECR
110+
id: build-image
111+
env:
112+
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
113+
IMAGE_TAG: ${{ github.sha }}
114+
run: |
115+
# Build a docker container and
116+
# push it to ECR so that it can
117+
# be deployed to ECS.
118+
docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG .
119+
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
120+
echo "image=$ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG" >> $GITHUB_ENV
121+
122+
- name: Fill in the new image ID in the Amazon ECS task definition
123+
id: task-def
124+
uses: aws-actions/amazon-ecs-render-task-definition@v1
125+
with:
126+
task-definition: $ECS_TASK_DEFINITION
127+
container-name: $CONTAINER_NAME
128+
image: ${{ steps.build-image.outputs.image }}
129+
130+
- name: Deploy Amazon ECS task definition
131+
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
132+
with:
133+
task-definition: ${{ steps.task-def.outputs.task-definition }}
134+
service: $ECS_SERVICE
135+
cluster: $ECS_CLUSTER
136+
wait-for-service-stability: true
137+
```
138+
{% endraw %}
139+
140+
### Additional resources
141+
142+
For more information on the services used in these examples, see the following documentation:
143+
144+
* "[Security best practices in IAM](https://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html)" in the Amazon AWS documentation.
145+
* Official AWS "[Configure AWS Credentials](https://github.com/aws-actions/configure-aws-credentials)" action.
146+
* Official AWS [Amazon ECR "Login"](https://github.com/aws-actions/amazon-ecr-login) action.
147+
* Official AWS [Amazon ECS "Render Task Definition"](https://github.com/aws-actions/amazon-ecs-render-task-definition) action.
148+
* Official AWS [Amazon ECS "Deploy Task Definition"](https://github.com/aws-actions/amazon-ecs-deploy-task-definition) action.

0 commit comments

Comments
 (0)