Skip to content

Updating agent version to 4.251.0 #35

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Feb 19, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: PR Validation
on:
pull_request:
paths-ignore:
- "README.md"
- "LICENSE"
- ".gitignore"
- ".github/**"

run-name: ${{ github.event.pull_request.title }} - ${{ github.sha }}

env:
DOCKER_BUILDKIT: 1
DOCKER_REPO_TAG: "azure-devops-agent:${{ github.sha }}"

jobs:

validate:
runs-on: ubuntu-latest
steps:

- name: Checkout
uses: actions/checkout@v4

# - name: docker login
# uses: docker/login-action@v3
# with:
# username: ${{ secrets.DOCKERHUB_USERNAME }}
# password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: docker build
uses: docker/build-push-action@v4
with:
context: src
file: ./Dockerfile
# push: true
push: false
tags: ${{ env.DOCKER_REPO_TAG }}
80 changes: 80 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
name: Release
on:
workflow_dispatch:
inputs:
version:
description: 'Release tag without v'
required: true
docker-tag:
description: 'Docker tag'
required: true


env:
DOCKER_BUILDKIT: 1
DOCKER_REPO_TAG: "azure-devops-agent:${{ github.event.inputs.docker-tag }}"


jobs:
validate:
runs-on: ubuntu-latest
steps:

- name: Checkout
uses: actions/checkout@v4

- name: docker login
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: docker build
uses: docker/build-push-action@v4
with:
context: src
file: ./Dockerfile
push: true
tags: ${{ env.DOCKER_REPO_TAG }}

release:
runs-on: ubuntu-latest
needs: [validate]
if: success('validate')
steps:
- name: Checkout
uses: actions/checkout@v4

- name: helm_install
uses: azure/setup-helm@v4.3.0
with:
version: v3.17.0

- name: helm_package
shell: bash
run: |
set -euo pipefail

helm dep update .
helm package .
helm repo index .

cat index.yaml >> $GITHUB_STEP_SUMMARY
working-directory: chart

- name: upload_artifact
uses: actions/upload-artifact@v4
with:
name: chart
path: chart/*.tgz

- name: create_github_release
uses: softprops/action-gh-release@v2
with:
files: |
chart/*.tgz
token: ${{ secrets.GITHUB_TOKEN }}
tag_name: v${{ github.event.inputs.version }}
generate_release_notes: true
prerelease: false
draft: true
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ ARG ARG_UBUNTU_BASE_IMAGE_TAG="20.04"
FROM ubuntu:${ARG_UBUNTU_BASE_IMAGE_TAG}
WORKDIR /azp
ENV TARGETARCH=linux-x64
ENV VSTS_AGENT_VERSION=3.248.0
ENV VSTS_AGENT_VERSION=4.251.0


# To make it easier for build and release pipelines to run apt-get,
Expand Down
67 changes: 34 additions & 33 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ The easiest and most effective method for creating and managing Azure DevOps age

You can watch the tutorial video below to learn how to deploy Azure DevOps agents on Kubernetes.

> LET'S CLICK ON THE IMAGE BELOW TO WATCH THE TUTORIAL VIDEO!qep2l1oxknk
> LET'S CLICK ON THE IMAGE BELOW TO WATCH THE TUTORIAL VIDEO!

[![Azure DevOps Agent on Kubernetes - How to deploy build agents on Kubernetes - Tutorial](https://img.youtube.com/vi/qep2l1oxknk/0.jpg)](https://www.youtube.com/watch?v=qep2l1oxknk)

Expand All @@ -19,13 +19,14 @@ You can watch the tutorial video below to learn how to deploy Azure DevOps agent

The table presented below outlines the correspondence between Helm chart versions, Docker tags, and the Azure DevOps agent versions included within those Docker images.

| Helm Version | Docker Tag | Agent Version |
|--------------|------------|---------------|
| 2.1.1 | 3.248.0-stable-v2.1.0 | 3.248.0 |
| 2.1.0 | 3.248.0-stable-v2.1.0 | 3.248.0 |
| 2.0.1 | 3.248.0 | 3.248.0 |
| 2.0.0 | 3.232.3 | 3.232.3 |
| 1.0.7 | 2.214.1 | 2.214.1 |
| Helm Version | Docker Tag | Agent Version |
| ------------ | --------------------- | ------------- |
| 2.2.0 | 4.251.0-stable-v2.2.0 | 4.251.0 |
| 2.1.1 | 3.248.0-stable-v2.1.0 | 3.248.0 |
| 2.1.0 | 3.248.0-stable-v2.1.0 | 3.248.0 |
| 2.0.1 | 3.248.0 | 3.248.0 |
| 2.0.0 | 3.232.3 | 3.232.3 |
| 1.0.7 | 2.214.1 | 2.214.1 |

## Important Release Notes

Expand Down Expand Up @@ -205,38 +206,38 @@ volumeMounts:

> :warning: Helm chart provides two option for authentication. Please use only one of them.

| Name | Description | Value |
| ------------------- | ----------------------------------------------------- | --------------------- |
| `agent.pat` | (1st Option) Personal access token for authentication | `""` |
| `agent.patSecret` | (2nd Option) Already existing secret name that stores PAT | `""` |
| `agent.patSecretKey` | (2nd Option) Key (field) name of the PAT that is stored in secret | `"pat"`|
| Name | Description | Value |
| -------------------- | ----------------------------------------------------------------- | ------- |
| `agent.pat` | (1st Option) Personal access token for authentication | `""` |
| `agent.patSecret` | (2nd Option) Already existing secret name that stores PAT | `""` |
| `agent.patSecretKey` | (2nd Option) Key (field) name of the PAT that is stored in secret | `"pat"` |


### Agent configuration parameters

| Name | Description | Value |
| ------------------- | ----------------------------------------------------- | --------------------- |
| `agent.organizationUrl` | Server / organization url, e.g.: https://dev.azure.com/your-organization-name | `""` |
| `agent.pool` | Agent pool name which the build agent is placed into | `"Default"` |
| `agent.workingDirectory` | Working directory of the agent | `"_work"` |
| `agent.extraEnv` | Additional environment variables as dictionary | `{}` |
| Name | Description | Value |
| ------------------------ | ----------------------------------------------------------------------------- | ----------- |
| `agent.organizationUrl` | Server / organization url, e.g.: https://dev.azure.com/your-organization-name | `""` |
| `agent.pool` | Agent pool name which the build agent is placed into | `"Default"` |
| `agent.workingDirectory` | Working directory of the agent | `"_work"` |
| `agent.extraEnv` | Additional environment variables as dictionary | `{}` |

### Other parameters

| Name | Description | Value |
| ------------------- | ----------------------------------------------------- | --------------------- |
| `image.registry` | Azure DevOps agent image registry | `docker.io` |
| `image.repository` | Azure DevOps agent image repository | `btungut/azure-devops-agent` |
| `image.tag` | Azure DevOps agent image tag | `3.248.0-stable-v2.1.0` |
| `image.pullPolicy` | Azure DevOps agent image pull policy | `IfNotPresent` |
| `image.pullSecrets` | Azure DevOps agent image pull secrets | `[]` |
| `replicaCount` | Replica count for deployment | `1` |
| `resources.requests.cpu` | CPU request value for scheduling | `"100m"` |
| `resources.requests.memory` | Memory request value for scheduling | `"128Mi"` |
| `resources.limits.cpu` | CPU limit value for scheduling | `"500m"` |
| `resources.limits.memory` | Memory limit value for scheduling | `"512Mi"` |
| `volumes` | Volumes for the container | `[]` |
| `volumeMounts` | Volume mountings | `[]` |
| Name | Description | Value |
| --------------------------- | ------------------------------------- | ---------------------------- |
| `image.registry` | Azure DevOps agent image registry | `docker.io` |
| `image.repository` | Azure DevOps agent image repository | `btungut/azure-devops-agent` |
| `image.tag` | Azure DevOps agent image tag | refer to values.yaml |
| `image.pullPolicy` | Azure DevOps agent image pull policy | `IfNotPresent` |
| `image.pullSecrets` | Azure DevOps agent image pull secrets | `[]` |
| `replicaCount` | Replica count for deployment | `1` |
| `resources.requests.cpu` | CPU request value for scheduling | `"100m"` |
| `resources.requests.memory` | Memory request value for scheduling | `"128Mi"` |
| `resources.limits.cpu` | CPU limit value for scheduling | `"500m"` |
| `resources.limits.memory` | Memory limit value for scheduling | `"512Mi"` |
| `volumes` | Volumes for the container | `[]` |
| `volumeMounts` | Volume mountings | `[]` |

Please refer the values.yaml for other parameters.

Expand Down