Skip to content

Commit a1691d0

Browse files
committed
Update self-hosted runner and increase ttl to 4h
1 parent 14f4199 commit a1691d0

File tree

7 files changed

+15
-5
lines changed

7 files changed

+15
-5
lines changed

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ inputs:
3535
image:
3636
description: Specifies the name of the image that the disk will be initialized with.
3737
required: false
38-
default: gh-runner-202307281245
38+
default: gh-runner-202308090449
3939
image_family:
4040
description: The image family for the operating system that the boot disk will be initialized with.
4141
required: false

vm/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ help: ## Display this help
2020
@awk 'BEGIN {FS = ":.*##"; printf "\nUsage:\n make \033[36m<target>\033[0m\n"} /^[a-zA-Z0-9_-]+:.*?##/ { printf " \033[36m%-15s\033[0m %s\n", $$1, $$2 } /^##@/ { printf "\n\033[1m%s\033[0m\n", substr($$0, 5) } ' $(MAKEFILE_LIST)
2121

2222
build-actions-runner-image: ## Builds a custom GCP image for github self-hosted runners
23+
packer init vm-image.pkr.hcl
2324
packer build -force \
2425
-var zone=europe-west1-b \
2526
-var project_id=public-github-runners \

vm/rootfs/etc/docker/daemon.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"mtu": 1440,
33
"builder": {
44
"gc": {
5-
"defaultKeepStorage": "20GB",
5+
"defaultKeepStorage": "10GB",
66
"enabled": true
77
}
88
},

vm/rootfs/etc/preloaded-images

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
eu.gcr.io/gitpod-core-dev/dev/dev-environment:aledbf-new-dev-image-gha.13182
21
eu.gcr.io/gitpod-core-dev/dev/dev-environment:aledbf-oci-tool-gha.14121
32
gitpod/workspace-full
43
mysql:5.7
54
node:16
65
localstack/localstack:2.2
6+
registry:2

vm/rootfs/etc/systemd/system/destroy-vm.timer

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Description="Run destroy-vm.service 1d after boot relative to activation time"
33

44
[Timer]
5-
OnBootSec=2h
5+
OnBootSec=4h
66
Unit=destroy-vm.service
77

88
[Install]

vm/setup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export DEBIAN_FRONTEND=noninteractive
66

77
RUNNER_USER="runner"
88
RUNNER_DIR="/home/${RUNNER_USER}"
9-
RUNNER_VER=2.307.0
9+
RUNNER_VER=2.307.1
1010

1111
HELM_VERSION=3.12.1
1212

vm/vm-image.pkr.hcl

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
packer {
2+
required_plugins {
3+
googlecompute = {
4+
source = "github.com/hashicorp/googlecompute"
5+
version = "~> 1"
6+
}
7+
}
8+
}
9+
110
variable "image_name" {
211
type = string
312
}

0 commit comments

Comments
 (0)