Skip to content

Commit b375abf

Browse files
authored
It's master instead of main according to the documentation flow.
I had an error when i was running my task with command below: for example az acr task run --registry $ACRname --name taskhelloworld because of main written in the url instead of master. According to the documentation flow it is master which must be there in order to have no problems for reader to execute this functionality. Otherwise user would have error ( ERROR: failed to download context. Please check if the url is incorrect. If it has credentials. Please check if they are expired) even though user would follow instructions as written in the documentation so please update this documentation with this pull request
1 parent 8364e69 commit b375abf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

articles/container-registry/container-registry-tutorial-build-task.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ az acr task create \
5050
--registry $ACR_NAME \
5151
--name taskhelloworld \
5252
--image helloworld:{{.Run.ID}} \
53-
--context https://github.com/$GIT_USER/acr-build-helloworld-node.git#main \
53+
--context https://github.com/$GIT_USER/acr-build-helloworld-node.git#master \
5454
--file Dockerfile \
5555
--git-access-token $GIT_PAT
5656
```
@@ -80,7 +80,7 @@ Output from a successful [az acr task create][az-acr-task-create] command is sim
8080
"step": {
8181
"arguments": [],
8282
"baseImageDependencies": null,
83-
"contextPath": "https://github.com/gituser/acr-build-helloworld-node#main",
83+
"contextPath": "https://github.com/gituser/acr-build-helloworld-node#master",
8484
"dockerFilePath": "Dockerfile",
8585
"imageNames": [
8686
"helloworld:{{.Run.ID}}"
@@ -102,7 +102,7 @@ Output from a successful [az acr task create][az-acr-task-create] command is sim
102102
"name": "defaultSourceTriggerName",
103103
"sourceRepository": {
104104
"branch": "main",
105-
"repositoryUrl": "https://github.com/gituser/acr-build-helloworld-node#main",
105+
"repositoryUrl": "https://github.com/gituser/acr-build-helloworld-node#master",
106106
"sourceControlAuthProperties": null,
107107
"sourceControlType": "GitHub"
108108
},
@@ -192,7 +192,7 @@ Next, execute the following commands to create, commit, and push a new file to y
192192
echo "Hello World!" > hello.txt
193193
git add hello.txt
194194
git commit -m "Testing ACR Tasks"
195-
git push origin main
195+
git push origin master
196196
```
197197

198198
You may be asked to provide your GitHub credentials when you execute the `git push` command. Provide your GitHub username, and enter the personal access token (PAT) that you created earlier for the password.

0 commit comments

Comments
 (0)