-
Notifications
You must be signed in to change notification settings - Fork 0
/
ACR.txt
34 lines (23 loc) · 1.15 KB
/
ACR.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
GitHub PAT: 44e7c9337abc65f5b5d3bb4d6d88768346800783
-----------------------------------------------------------------------------
Create the ACR task. Remember that image name can not contain capital letters:
ACR_NAME=KTContainerRegistry # The name of your Azure container registry
GIT_USER=KThaulow # Your GitHub user account name
GIT_PAT=44e7c9337abc65f5b5d3bb4d6d88768346800783 # The PAT you generated in the previous section
az acr task create \
--registry $ACR_NAME \
--name CreateOnCommitTask \
--image consoleapplication:latest \
--context https://github.com/$GIT_USER/DockerApplication.git \
--branch master \
--file Dockerfile \
--git-access-token $GIT_PAT
-----------------------------------------------------------------------------
Build task:
az acr task run --registry $ACR_NAME --name TaskConsoleApplication
-----------------------------------------------------------------------------
Delete a task:
az acr task delete -n taskconsoleapplication -r KTContainerRegistry
-----------------------------------------------------------------------------
List tasks:
az acr task list -r KTContainerRegistry