Skip to content

Commit

Permalink
das-110: Create github runner
Browse files Browse the repository at this point in the history
  • Loading branch information
levisingularity committed Oct 14, 2024
1 parent c5cd195 commit f29b265
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
9 changes: 9 additions & 0 deletions github-runner.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

mkdir actions-runner && cd actions-runner

curl -o actions-runner-linux-x64-2.320.0.tar.gz -L https://github.com/actions/runner/releases/download/v2.320.0/actions-runner-linux-x64-2.320.0.tar.gz

echo "93ac1b7ce743ee85b5d386f5c1787385ef07b3d7c728ff66ce0d3813d5f46900 actions-runner-linux-x64-2.320.0.tar.gz" | shasum -a 256 -c

tar xzf ./actions-runner-linux-x64-2.320.0.tar.gz
11 changes: 11 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -74,3 +74,14 @@ module "das_apt_repository" {
region = var.region
plan = "vc2-1c-2gb"
}

module "das_github_runner" {
source = "./instance"
create_resource = true
name = "das-github-runner"
environment = local.environment
user_data_file = file("github-runner.sh")
ssh_key_ids = var.ssh_key_ids
region = var.region
plan = "vc2-1c-2gb"
}

0 comments on commit f29b265

Please sign in to comment.