Skip to content

Commit b5efb22

Browse files
Merge pull request #224068 from tejaswikolli-web/gitissue#73733
added docker build arguments for git hub issue 73733
2 parents 0cae7b6 + dd6495a commit b5efb22

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

articles/container-registry/container-registry-tasks-reference-yaml.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,17 @@ steps:
136136
[property]: [value]
137137
```
138138

139+
Run the [az acr run][az-acr-run]command to get the docker version.
140+
141+
```azurecli
142+
az acr run -r $ACR_NAME --cmd "docker version" /dev/null
143+
```
144+
145+
Add environment variable `DOCKER_BUILDKIT=1` in yaml file to enable `buildkit` and use `secret` with `buildkit`.
146+
139147
The `build` step type supports the parameters in the following table. The `build` step type also supports all build options of the [docker build](https://docs.docker.com/engine/reference/commandline/build/) command, such as `--build-arg` to set build-time variables.
140148

149+
141150
| Parameter | Description | Optional |
142151
| --------- | ----------- | :-------: |
143152
| `-t` &#124; `--image` | Defines the fully qualified `image:tag` of the built image.<br /><br />As images may be used for inner task validations, such as functional tests, not all images require `push` to a registry. However, to instance an image within a Task execution, the image does need a name to reference.<br /><br />Unlike `az acr build`, running ACR Tasks doesn't provide default push behavior. With ACR Tasks, the default scenario assumes the ability to build, validate, then push an image. See [push](#push) for how to optionally push built images. | Yes |

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ az acr task show --name timertask --registry $ACR_NAME --output table
9494
```
9595

9696
Run the [az acr task run][az-acr-task-run ] command to trigger the task manually.
97+
9798
```azurecli
9899
az acr task run --name timertask --registry $ACR_NAME
99100
```

0 commit comments

Comments
 (0)