Skip to content

Commit 630c148

Browse files
committed
Configure /etc/environment on start
1 parent 29b3570 commit 630c148

File tree

5 files changed

+8
-132
lines changed

5 files changed

+8
-132
lines changed

.github/workflows/new-runner.yml

Lines changed: 0 additions & 127 deletions
This file was deleted.

action.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,12 @@ cleanup() {
164164
trap 'cleanup; exit 130' INT
165165
trap 'cleanup; exit 143' TERM
166166
167+
cat <<-EOF >/etc/environment
168+
PATH="/home/runner/go-packages/bin:/home/runner/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin"
169+
GOPATH="/home/runner/go-packages"
170+
GOROOT="/home/runner/go"
171+
EOF
172+
167173
# Create a systemd service in charge of shutting down the machine once the workflow has finished
168174
cat <<-EOF >/etc/systemd/system/shutdown.sh
169175
#!/bin/sh
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
Package: snapd
22
Pin: release a=*
3-
Pin-Priority: -10
3+
Pin-Priority: -10

vm/rootfs/etc/docker/daemon.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@
77
}
88
},
99
"experimental": true
10-
}
10+
}

vm/rootfs/etc/environment

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)