Skip to content

Commit 8f5cc98

Browse files
authored
Merge pull request #85509 from dlepow/acrfix2
[ACR] Tasks without source context
2 parents 5941c0d + a5cb06c commit 8f5cc98

File tree

3 files changed

+13
-11
lines changed

3 files changed

+13
-11
lines changed

articles/container-registry/container-registry-tasks-authentication-key-vault.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ The steps in this section create a task and enable a user-assigned identity. If
103103

104104
### Create task
105105

106-
Create the task *dockerhubtask* by executing the following [az acr task create][az-acr-task-create] command. The task context is the local system, and the command references the file `dockerhubtask.yaml` in the working directory. The `--assign-identity` parameter passes the resource ID of the user-assigned identity.
106+
Create the task *dockerhubtask* by executing the following [az acr task create][az-acr-task-create] command. The task runs without a source code context, and the command references the file `dockerhubtask.yaml` in the working directory. The `--assign-identity` parameter passes the resource ID of the user-assigned identity.
107107

108108
```azurecli
109109
az acr task create \
@@ -122,7 +122,7 @@ The steps in this section create a task and enable a system-assigned identity. I
122122

123123
### Create task
124124

125-
Create the task *dockerhubtask* by executing the following [az acr task create][az-acr-task-create] command. The task context is the local system, and the command references the file `dockerhubtask.yaml` in the working directory. The `--assign-identity` parameter with no value enables the system-assigned identity on the task.
125+
Create the task *dockerhubtask* by executing the following [az acr task create][az-acr-task-create] command. The task runs without a source code context, and the command references the file `dockerhubtask.yaml` in the working directory. The `--assign-identity` parameter with no value enables the system-assigned identity on the task.
126126

127127
```azurecli
128128
az acr task create \

articles/container-registry/container-registry-tasks-cross-registry-authentication.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ The steps in this section create a task and enable a user-assigned identity. If
7272

7373
### Create task
7474

75-
Create the task *helloworldtask* by executing the following [az acr task create][az-acr-task-create] command. The task context is the local system, and the command references the file `helloworldtask.yaml` in the working directory. The `--assign-identity` parameter passes the resource ID of the user-assigned identity.
75+
Create the task *helloworldtask* by executing the following [az acr task create][az-acr-task-create] command. The task runs without a source code context, and the command references the file `helloworldtask.yaml` in the working directory. The `--assign-identity` parameter passes the resource ID of the user-assigned identity.
7676

7777
```azurecli
7878
az acr task create \
@@ -91,7 +91,7 @@ The steps in this section create a task and enable a system-assigned identity. I
9191

9292
### Create task
9393

94-
Create the task *helloworldtask* by executing the following [az acr task create][az-acr-task-create] command. The task context is the local system, and the command references the file `helloworldtask.yaml` in the working directory. The `--assign-identity` parameter with no value enables the system-assigned identity on the task.
94+
Create the task *helloworldtask* by executing the following [az acr task create][az-acr-task-create] command. The task runs without a source code context, and the command references the file `helloworldtask.yaml` in the working directory. The `--assign-identity` parameter with no value enables the system-assigned identity on the task.
9595

9696
```azurecli
9797
az acr task create \

articles/container-registry/container-registry-tasks-scheduled.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ As a simple example, the following command triggers running the `hello-world` im
4343
az acr task create \
4444
--name mytask \
4545
--registry myregistry \
46-
--context /dev/null \
4746
--cmd hello-world \
48-
--schedule "0 21 * * *"
47+
--schedule "0 21 * * *" \
48+
--context /dev/null
4949
```
5050

5151
Run the [az acr task show][az-acr-task-show] command to see that the timer trigger is configured. By default, the base image update trigger is also enabled.
@@ -171,11 +171,11 @@ Each field can have one of the following types of values:
171171

172172
|Type |Example |When triggered |
173173
|---------|---------|---------|
174-
|A specific value |<nobr>"5 * * * *"</nobr>|every hour at 5 minutes past the hour|
175-
|All values (`*`)|<nobr>"* 5 * * *"</nobr>|every minute of the hour beginning 5:00 UTC (60 times a day)|
176-
|A range (`-` operator)|<nobr>"0 1-3 * * *"</nobr>|3 times per day, at 1:00, 2:00, and 3:00 UTC|
177-
|A set of values (`,` operator)|<nobr>"20,30,40 * * * *"</nobr>|3 times per hour, at 20 minutes, 30 minutes, and 40 minutes past the hour|
178-
|An interval value (`/` operator)|<nobr>"*/10 * * * *"</nobr>|6 times per hour, at 10 minutes, 20 minutes, and so on, past the hour
174+
|A specific value |<nobr>`"5 * * * *"`</nobr>|every hour at 5 minutes past the hour|
175+
|All values (`*`)|<nobr>`"* 5 * * *"`</nobr>|every minute of the hour beginning 5:00 UTC (60 times a day)|
176+
|A range (`-` operator)|<nobr>`"0 1-3 * * *"`</nobr>|3 times per day, at 1:00, 2:00, and 3:00 UTC|
177+
|A set of values (`,` operator)|<nobr>`"20,30,40 * * * *"`</nobr>|3 times per hour, at 20 minutes, 30 minutes, and 40 minutes past the hour|
178+
|An interval value (`/` operator)|<nobr>`"*/10 * * * *"`</nobr>|6 times per hour, at 10 minutes, 20 minutes, and so on, past the hour
179179

180180
[!INCLUDE [functions-cron-expressions-months-days](../../includes/functions-cron-expressions-months-days.md)]
181181

@@ -194,6 +194,8 @@ Each field can have one of the following types of values:
194194

195195
## Next steps
196196

197+
For an example of using a scheduled task to clean up repositories in a registry, see [Automatically purge images from an Azure container registry](container-registry-auto-purge.md).
198+
197199
For examples of tasks triggered by source code commits or base image updates, check out the [ACR Tasks tutorial series](container-registry-tutorial-quick-task.md).
198200

199201

0 commit comments

Comments
 (0)