Skip to content

8-bit-fox/test-acr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Steps for automating image builds

  1. Run
    az login
    to login the Azure CLI with your account.
  2. Create a Terraform sheet
    provider "azurerm" {
      version = "=1.44.0"
      subscription_id = ${SUBSCRIPTION_ID}
    }
    
    resource "azurerm_resource_group" "rg" {
      location = ${LOCATION}
      name = ${NAME}
    }
    
    resource "azurerm_container_registry" "acr" {
      name                     = ${NAME}
      resource_group_name      = azurerm_resource_group.rg.name
      location                 = azurerm_resource_group.rg.location
      sku                      = "Basic"
    }```
    
  3. Run
    terraform apply

to deploy an ACR.

  1. Create a personal access token (e.g., Github) and save it in a file access.token.
  2. Run
    az acr task create --name hello-world-task -f hello-world-task.yaml -c https://github.com/marquardts/test-acr.git --git-access-token `cat access.token`
    to create a task to execute the task definition in hello-world-task.yaml from the repo. By default, on-commit and base-image change triggers are active.

Caveats

  • Does not work with Github Enterprise

Sources

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published