fix: runner env vars — HOME, AWS_DEFAULT_REGION, PATH in runner config
Ensures act_runner passes correct environment to job steps so AWS CLI can find IMDS credentials and Go/Node are on PATH.
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -158,9 +158,13 @@ cleanup() {
|
||||
trap cleanup EXIT
|
||||
|
||||
# Source Go/Node paths from AMI
|
||||
export PATH=$PATH:/usr/local/go/bin
|
||||
export PATH=$PATH:/usr/local/go/bin:/usr/local/bin
|
||||
export HOME=/root
|
||||
|
||||
# Ensure AWS SDK can find instance profile credentials via IMDS
|
||||
# act_runner may change HOME — force credential chain to use IMDS
|
||||
export AWS_EC2_METADATA_DISABLED=false
|
||||
|
||||
# Create proper working directory for act_runner
|
||||
mkdir -p /opt/runner && cd /opt/runner
|
||||
|
||||
@@ -178,6 +182,10 @@ log:
|
||||
runner:
|
||||
capacity: 1
|
||||
timeout: 30m
|
||||
envs:
|
||||
HOME: /root
|
||||
AWS_DEFAULT_REGION: eu-west-1
|
||||
PATH: /usr/local/go/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
|
||||
host:
|
||||
workdir_parent: /opt/runner/work
|
||||
RUNCFG
|
||||
|
||||
Reference in New Issue
Block a user