Code to build Azure images with Packer for Github Actions Runners and Azure Devops Agent Pools. The images will be published
to a shared image gallery. The shared image gallery is expected to be set up with image definitions for azdo-agent
and github-runner
.
Make sure that az login
is done before running a build:
PKR_VAR_use_azure_cli_auth=true \
PKR_VAR_version=x.x.x \
make azdo-agent
PKR_VAR_client_id=xxxxxxxxxx \
PKR_VAR_client_secret=xxxxxxxxxx \
PKR_VAR_subscription_id=xxxxxxxxxx \
PKR_VAR_version=x.x.x \
make github-runner