Skip to content

Commit d75f6ef

Browse files
committed
Add "Updating runner" debug message
1 parent 866c114 commit d75f6ef

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# CI Storage
44

5-
This repository is a combination of several tools which work in unison:
5+
This repository is a combination of several tools that work in unison:
66

77
- [Action: ci-storage](#action-ci-storage). A GitHub action which uses ci-storage command-line tool.
88
- [Command-line tool: ci-storage](https://github.com/dimikot/ci-storage/blob/main/ci-storage). The tool itself. It can be used stand-alone too.
@@ -175,22 +175,22 @@ jobs:
175175
```
176176

177177

178-
## Command-line tool: ci-storage
178+
## Command-Line Tool: ci-storage
179179

180180
The command-line tool allows to run ci-storage manually.
181181

182182
- [See source code and description](https://github.com/dimikot/ci-storage/blob/main/ci-storage)
183183

184184

185-
## Docker image: ci-storage
185+
## Docker Image: ci-storage
186186

187187
A part of self-hosted runners infra representing the storage for ci-storage tool.
188188

189189
- [See README](https://github.com/dimikot/ci-storage/tree/main/docker/ci-storage)
190190
- [See Docker image: dimikot/ci-storage](https://github.com/dimikot/ci-storage/pkgs/container/ci-storage)
191191

192192

193-
## Docker image: ci-scaler
193+
## Docker Image: ci-scaler
194194

195195
A part of self-hosted runners infra which dynamically launches more self-hosted
196196
runner spot instances when needed, recycles idle resources etc.
@@ -199,7 +199,7 @@ runner spot instances when needed, recycles idle resources etc.
199199
- [See Docker image: dimikot/ci-scaler](https://github.com/dimikot/ci-storage/pkgs/container/ci-scaler)
200200

201201

202-
## Docker image: ci-runner
202+
## Docker Image: ci-runner
203203

204204
A part of self-hosted runners infra representing GitHub Actions runner.
205205

docker/ci-runner/guest/entrypoint.03-update.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ if [[ "$(find . -name "$updated_at_file" -mtime +21)" != "" ]]; then
1717
aarch64|arm64) arch=linux-arm64 ;;
1818
*) echo >&2 "unsupported architecture: $arch"; exit 1 ;;
1919
esac
20+
say "Fetching the latest runner version..."
2021
runner_version=$(curl --silent "https://api.github.com/repos/actions/runner/releases/latest" | jq -r ".tag_name[1:]")
22+
say "Updating runner to \"$runner_version\" (previously updated on $(cat $updated_at_file))..."
2123
curl --no-progress-meter -L "https://github.com/actions/runner/releases/download/v$runner_version/actions-runner-$arch-$runner_version.tar.gz" | tar xz
2224
say "Updated runner to $runner_version (previously updated on $(cat $updated_at_file))."
2325
date > $updated_at_file

0 commit comments

Comments
 (0)