Skip to content
Open
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
18 changes: 15 additions & 3 deletions Dockerfile.github
Original file line number Diff line number Diff line change
@@ -1,13 +1,25 @@
FROM ghcr.io/actions/actions-runner:2.304.0
# for latest release, see https://github.com/actions/runner/releases
# For latest release, see https://github.com/actions/runner/releases

USER root

# install curl and jq
RUN apt-get update && apt-get install -y curl jq && \
# Install required packages and tools
RUN apt-get update && \
apt-get install -y \
curl \
gpg \
jq \
unzip \
git \
tar \
wget \
lsb-release && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*

# Install Azure CLI
RUN curl -sL https://aka.ms/InstallAzureCLIDeb | bash

COPY github-actions-runner/entrypoint.sh ./entrypoint.sh
RUN chmod +x ./entrypoint.sh

Expand Down
2 changes: 1 addition & 1 deletion github-actions-runner/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ REGISTRATION_TOKEN="$(curl -X POST -fsSL \
"$REGISTRATION_TOKEN_API_URL" \
| jq -r '.token')"

./config.sh --url $GH_URL --token $REGISTRATION_TOKEN --unattended --ephemeral && ./run.sh
./config.sh --url $GH_URL --token $REGISTRATION_TOKEN --unattended --ephemeral --labels $RUNNER_LABELS && ./run.sh