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
|
trap cleanup EXIT
|
||||||
|
|
||||||
# Source Go/Node paths from AMI
|
# 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
|
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
|
# Create proper working directory for act_runner
|
||||||
mkdir -p /opt/runner && cd /opt/runner
|
mkdir -p /opt/runner && cd /opt/runner
|
||||||
|
|
||||||
@@ -178,6 +182,10 @@ log:
|
|||||||
runner:
|
runner:
|
||||||
capacity: 1
|
capacity: 1
|
||||||
timeout: 30m
|
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:
|
host:
|
||||||
workdir_parent: /opt/runner/work
|
workdir_parent: /opt/runner/work
|
||||||
RUNCFG
|
RUNCFG
|
||||||
|
|||||||
Reference in New Issue
Block a user