Self-hosted agent for azure pipelines that runs dotnet-sdk-6.0
, aspnetcore-runtime-6.0
and nodejs 16.x
.
version: "3"
services:
azure-devops-agent:
container_name: azure-devops-agent
image: rteixeirax/azure-devops-agent
restart: unless-stopped
environment:
- AZP_URL=https://your.server.instance
- AZP_TOKEN=your_access_token
- AZP_AGENT_NAME=your_agent_name
- AZP_POOL=Default
- AZP_WORK=_work
docker run -d \
--name=azure-devops-agent \
-e AZP_URL=https://your.server.instance \
-e AZP_TOKEN=your_access_token \
-e AZP_AGENT_NAME=your_agent_name \
-e AZP_POOL=Default \
-e AZP_WORK=_work \
--restart unless-stopped \
rteixeirax/azure-devops-agent
Variable | Description |
---|---|
AZP_URL |
The URL of the Azure DevOps or Azure DevOps Server instance. |
AZP_TOKEN |
Personal Access Token (PAT) with Agent Pools (read, manage) scope, created by a user who has permission to configure agents, at AZP_URL . |
AZP_AGENT_NAME |
Agent name (default value: the container hostname). |
AZP_POOL |
Agent pool name (default value: Default ). |
AZP_WORK |
Work directory (default value: _work ). |