Skip to content
This repository was archived by the owner on Feb 11, 2025. It is now read-only.

Commit 9ac8f49

Browse files
authored
Merge pull request #25 from fullstack-devops/bugfix/update-ghr-to-v2.292.0
update to ghr v2.292.0
2 parents 4d0b34d + ffb9c0a commit 9ac8f49

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ Package / Images: `ghcr.io/fullstack-devops/github-actions-runner`
1313

1414
Available Tags:
1515
| Name (tag) | Installed Tools/ Software | Description |
16-
|-------------------------|-----------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------|
16+
| ----------------------- | --------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- |
1717
| `latest-base` | libffi-dev, libicu-dev, build-essential, libssl-dev, ca-certificates, jq, sed, grep, git, curl, wget, zip | Base runner with nothing fancy installed <br> [Dockerfile](images/base/Dockerfile) |
1818
| `latest-kaniko-sidecar` | kaniko | Sidecar used by other runner images to build containers without root privileges |
1919
| `latest-ansible-k8s` | base-image + ansible, helm, kubectl, skopeo | Runner specialized for automated k8s deployments via ansible <br> For more Details see [Dockerfile](images/ansible-k8s/Dockerfile) |
20-
| `latest-fullstacked` | base-image + maven, openjdk-11, nodejs, go, yarn, angular/cli, helm | Runner with a bunch of tools to build your hole application<br> For more Details see [Dockerfile](images/fullstacked/Dockerfile) |
20+
| `latest-fullstacked` | base-image + ansible, helm, maven, openjdk-11, nodejs, go, yarn, angular/cli | Runner with a bunch of tools to build your hole application<br> For more Details see [Dockerfile](images/fullstacked/Dockerfile) |
2121

2222
> Hint: `latest` can be replaced with an specific release version for more stability in your environment.
2323
@@ -28,7 +28,7 @@ Available Tags:
2828
### Required environmental variables
2929

3030
| Variable | Type | Description |
31-
|-------------------|--------|-------------------------------------------------------------------------------------------------------------------|
31+
| ----------------- | ------ | ----------------------------------------------------------------------------------------------------------------- |
3232
| `GH_ORG` | string | Points to the GitHub Organisation where the runner should be installed |
3333
| `GH_ACCESS_TOKEN` | string | Developer Token vor the GitHub Organisation<br> This Token can be personal and is onlv needed during installation |
3434

@@ -37,7 +37,7 @@ Available Tags:
3737
For the helm values see the [values.yaml](https://github.com/fullstack-devops/helm-charts/blob/main/charts/github-actions-runner/values.yaml), section `envValues`
3838

3939
| Variable | Type | Default | Description |
40-
|-------------------|--------|--------------------------|----------------------------------------------------------------------|
40+
| ----------------- | ------ | ------------------------ | -------------------------------------------------------------------- |
4141
| `GH_URL` | string | `https://github.com` | For GitHub Enterprise support |
4242
| `GH_API_ENDPOINT` | string | `https://api.github.com` | For GitHub Enterprise support eg.: `https://git.example.com/api/v3/` |
4343
| `GH_REPO` | string | | installing a runner to a spezific repository |

images/base/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ ENV GH_RUNNER_WORKDIR="/home/${USERNAME}"
1212
ENV GH_KANIKO_WORKDIR="/kaniko/workspace"
1313

1414
# https://github.com/actions/runner/releases
15-
ENV GH_RUNNER_VERSION=2.291.1
15+
ENV GH_RUNNER_VERSION=2.292.0
1616
ENV GH_RUNNER_LABELS=ubuntu-20.04
1717

1818
ENV AWESOME_CI_VERSION 0.11.6

images/base/helper-scripts/gh-entrypoint.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,8 @@ fi
2525
# access details
2626
if [ ! -z "$RUNNER_TOKEN" ]; then
2727
readonly REG_TOKEN=$RUNNER_TOKEN
28-
unset RUNNER_TOKEN
2928
elif [ ! -z $GH_ACCESS_TOKEN ]; then
3029
readonly REG_TOKEN=$(curl -s -X POST -H "Accept: application/vnd.github.v3+json" -H "Authorization: token $GH_ACCESS_TOKEN" $RUNNER_REG_TOKEN_URL | jq .token --raw-output)
31-
unset GH_ACCESS_TOKEN
3230
else
3331
echo "Please provide one of the Environment Variables:"
3432
echo "GH_ACCESS_TOKEN, RUNNER_TOKEN"
@@ -65,6 +63,11 @@ echo "Runner configured"
6563

6664
cleanup() {
6765
echo "Removing runner..."
66+
if [ ! -z "$RUNNER_TOKEN" ]; then
67+
readonly REG_TOKEN=$RUNNER_TOKEN
68+
else [ ! -z $GH_ACCESS_TOKEN ]; then
69+
readonly REG_TOKEN=$(curl -s -X POST -H "Accept: application/vnd.github.v3+json" -H "Authorization: token $GH_ACCESS_TOKEN" $RUNNER_REG_TOKEN_URL | jq .token --raw-output)
70+
fi
6871
${RUNNER_HOME}/config.sh remove --token ${REG_TOKEN}
6972
exit 1
7073
}

0 commit comments

Comments
 (0)