Skip to content

Commit

Permalink
change hostname of the runner to mitigate too long hostname (#352)
Browse files Browse the repository at this point in the history
  • Loading branch information
yanksyoon authored Aug 22, 2024
1 parent 74441c3 commit 789b3a1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/e2e_test_run.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ jobs:
name: End-to-End Test Run
runs-on: [self-hosted, linux, "${{ inputs.runner-tag }}"]
steps:
- name: Hostname is set to "github-runner"
run: sudo hostnamectl hostname | grep github-runner
# Snapd can have some issues in privileged LXD containers without setting
# security.nesting=True and this.
- name: Fix snap issue in privileged LXD containers
Expand Down
2 changes: 2 additions & 0 deletions templates/openstack-userdata.sh.j2
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

set -e

hostnamectl set-hostname github-runner

# Write .env contents
su - ubuntu -c 'cd ~/actions-runner && echo "{{ env_contents }}" > .env'

Expand Down

0 comments on commit 789b3a1

Please sign in to comment.