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 Apr 5, 2023
2 parents 72c147d + 3b69ffb commit 9549159
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 5 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,13 @@ on:
- main

env:
AGENT_VERSION: 3.218.0
CONTAINER_NAME: ${{ github.repository }}
CONTAINER_REGISTRY: ghcr.io
# https://github.com/microsoft/azure-pipelines-agent/releases
AGENT_VERSION: 3.218.0
# https://github.com/PowerShell/PowerShell/releases
POWERSHELL_VERSION: 7.2.10
# https://github.com/mikefarah/yq/releases
YQ_VERSION: 4.33.2

jobs:
Expand Down
1 change: 1 addition & 0 deletions src/docker/Dockerfile-bullseye
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ RUN apt-get update -q \
iputils-ping \
jq \
make \
sudo \
tar \
unzip \
wget \
Expand Down
1 change: 1 addition & 0 deletions src/docker/Dockerfile-focal
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ RUN apt-get update -q \
iputils-ping \
jq \
make \
sudo \
tar \
unzip \
wget \
Expand Down
1 change: 1 addition & 0 deletions src/docker/Dockerfile-jammy
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ RUN apt-get update -q \
iputils-ping \
jq \
make \
sudo \
tar \
unzip \
wget \
Expand Down
1 change: 1 addition & 0 deletions src/docker/Dockerfile-ubi8
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ RUN microdnf install -y --refresh --nodocs --setopt=install_weak_deps=0 \
iputils \
jq \
make \
sudo \
tar \
unzip \
wget \
Expand Down
8 changes: 4 additions & 4 deletions src/docker/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ if [ -n "$AZP_WORK" ]; then
mkdir -p "$AZP_WORK"
fi

export AGENT_ALLOW_RUNASROOT="1"

cleanup() {
if [ -e config.sh ]; then
print_header "Cleanup. Removing Azure Pipelines agent..."
Expand All @@ -45,11 +43,13 @@ print_header() {
echo -e "${lightcyan}$1${nocolor}"
}

print_header "Configuring Azure Pipelines agent..."

# Allow the agent to run as root (only feasible because the agent is running in a not-reused container)
export AGENT_ALLOW_RUNASROOT="1"
# Let the agent ignore the token env variables
export VSO_AGENT_IGNORE=AZP_TOKEN,AZP_TOKEN_FILE

print_header "Configuring Azure Pipelines agent..."

./config.sh --unattended \
--acceptTeeEula \
--agent "${AZP_AGENT_NAME:-$(hostname)}" \
Expand Down

0 comments on commit 9549159

Please sign in to comment.