author | ms.service | ms.topic | ms.date | ms.author |
---|---|---|---|---|
dlepow |
container-registry |
include |
05/02/2019 |
danlep |
This tutorial assumes you've already completed the steps in the previous tutorial, and have forked and cloned the sample repository. If you haven't already done so, complete the steps in the Prerequisites section of the previous tutorial before proceeding.
You must have an Azure container registry in your Azure subscription to complete this tutorial. If you need a registry, see the previous tutorial, or Quickstart: Create a container registry using the Azure CLI.
To trigger a task on a commit to a Git repository, ACR Tasks need a personal access token (PAT) to access the repository. If you do not already have a PAT, follow these steps to generate one in GitHub:
-
Navigate to the PAT creation page on GitHub at https://github.com/settings/tokens/new
-
Enter a short description for the token, for example, "ACR Tasks Demo"
-
Select scopes for ACR to access the repo. To access a public repo as in this tutorial, under repo, enable repo:status and public_repo
[!NOTE] To generate a PAT to access a private repo, select the scope for full repo control.
-
Select the Generate token button (you may be asked to confirm your password)
-
Copy and save the generated token in a secure location (you use this token when you define a task in the following section)