Skip to content

Commit

Permalink
Merge branch 'develop' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
clemlesne committed Mar 30, 2023
2 parents b67deed + 58d4dd5 commit aa73c06
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 14 deletions.
35 changes: 21 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,16 @@
[![Artifact Hub](https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/azure-pipelines-agent-container)](https://artifacthub.io/packages/search?repo=azure-pipelines-agent-container)
[![Pipeline](https://github.com/clemlesne/azure-pipelines-agent/actions/workflows/pipeline.yaml/badge.svg)](https://github.com/clemlesne/azure-pipelines-agent/actions/workflows/pipeline.yaml)

## Usage
Features:

- Agent register itself with the Azure DevOps server.
- Agent restart itself if it crashes.
- Agent update itself to the latest version.
- Compatible with all Debian and Ubuntu LTS releases.
- Container security updates are applied every week.
- SBOM (Software Bill of Materials) is packaged with each container image.

- This image will automatically pull and install the latest Azure DevOps version at startup.
## Usage

### Deployment in Kubernetes using Helm

Expand All @@ -20,9 +27,19 @@ helm repo update
helm upgrade --install agent clemlesne-azure-pipelines-agent/azure-pipelines-agent
```

> Find us on [Artifact Hub](https://artifacthub.io/packages/helm/clemlesne/azure-pipelines-agent)
## Compatibility

| Ref | OS | Arch | Support |
|-|-|-|-|
| `docker pull ghcr.io/clemlesne/azure-pipelines-agent:bullseye-main` | Debian Bullseye (11) slim | `linux/amd64`, `linux/arm/v5`, `linux/arm/v7`, `linux/arm64/v8` | [See Debian LTS wiki.](https://wiki.debian.org/LTS) |
| `docker pull ghcr.io/clemlesne/azure-pipelines-agent:buster-main` | Debian Buster (10) slim | `linux/amd64`, `linux/arm/v7`, `linux/arm64/v8` | [See Debian LTS wiki.](https://wiki.debian.org/LTS) |
| `docker pull ghcr.io/clemlesne/azure-pipelines-agent:bionic-main` | Ubuntu Bionic (18.04) minimal | `linux/amd64`, `linux/arm/v7`, `linux/arm64/v8` | [See Ubuntu LTS wiki.](https://wiki.ubuntu.com/Releases) |
| `docker pull ghcr.io/clemlesne/azure-pipelines-agent:focal-main` | Ubuntu Focal (20.04) minimal | `linux/amd64`, `linux/arm/v7`, `linux/arm64/v8` | [See Ubuntu LTS wiki.](https://wiki.ubuntu.com/Releases) |
| `docker pull ghcr.io/clemlesne/azure-pipelines-agent:jammy-main` | Ubuntu Jammy (22.04) minimal | `linux/amd64`, `linux/arm/v7`, `linux/arm64/v8` | [See Ubuntu LTS wiki.](https://wiki.ubuntu.com/Releases) |

You can customize the values of the helm deployment by using the following Values:
## Advanced usage

### Helm values

| Parameter | Description | Default |
|-|-|-|
Expand All @@ -49,16 +66,6 @@ You can customize the values of the helm deployment by using the following Value
| `serviceAccount.name` | ServiceAccount name | _release name_ |
| `tolerations` | Toleration labels for pod assignment | `[]` |

### Compatibility

| Ref | OS | Arch | Support |
|-|-|-|-|
| `docker pull ghcr.io/clemlesne/azure-pipelines-agent:bullseye-main` | Debian Bullseye (11) slim | `linux/amd64`, `linux/arm/v5`, `linux/arm/v7`, `linux/arm64/v8` | [See Debian LTS wiki.](https://wiki.debian.org/LTS) |
| `docker pull ghcr.io/clemlesne/azure-pipelines-agent:buster-main` | Debian Buster (10) slim | `linux/amd64`, `linux/arm/v7`, `linux/arm64/v8` | [See Debian LTS wiki.](https://wiki.debian.org/LTS) |
| `docker pull ghcr.io/clemlesne/azure-pipelines-agent:bionic-main` | Ubuntu Bionic (18.04) minimal | `linux/amd64`, `linux/arm/v7`, `linux/arm64/v8` | [See Ubuntu LTS wiki.](https://wiki.ubuntu.com/Releases) |
| `docker pull ghcr.io/clemlesne/azure-pipelines-agent:focal-main` | Ubuntu Focal (20.04) minimal | `linux/amd64`, `linux/arm/v7`, `linux/arm64/v8` | [See Ubuntu LTS wiki.](https://wiki.ubuntu.com/Releases) |
| `docker pull ghcr.io/clemlesne/azure-pipelines-agent:jammy-main` | Ubuntu Jammy (22.04) minimal | `linux/amd64`, `linux/arm/v7`, `linux/arm64/v8` | [See Ubuntu LTS wiki.](https://wiki.ubuntu.com/Releases) |

## Support

If you need help or found a bug, please feel free to open an issue on the [clemlesne/azure-pipelines-agent](https://github.com/clemlesne/azure-pipelines-agent) GitHub project.
13 changes: 13 additions & 0 deletions src/docker/start.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
#!/bin/bash
set -e

ARCHITECTURE="$(arch)"
TARGETARCH=$ARCHITECTURE
if [[ $TARGETARCH == x86_64 ]]; then
TARGETARCH="linux-x64"
elif [[ $TARGETARCH == arm* ]]; then
TARGETARCH="linux-arm"
elif [[ $TARGETARCH == aarch64 ]]; then
TARGETARCH="linux-arm64"
else
echo 1>&2 "Unsupported architecture"
exit 1
fi

if [ -z "$AZP_URL" ]; then
echo 1>&2 "error: missing AZP_URL environment variable"
exit 1
Expand Down

0 comments on commit aa73c06

Please sign in to comment.