File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2727# Check if we are running in a container
2828# If we are then just run make directly
2929if [ -z " $AVM_IN_CONTAINER " ]; then
30- $CONTAINER_RUNTIME run --pull always --user " $( id -u) :$( id -g) " --rm $AZURE_VOLUME -v /etc/passwd:/etc/passwd -v /etc/group:/etc/group -v " $( pwd) " :/src -w /src -e GITHUB_REPOSITORY -e GITHUB_REPOSITORY_OWNER mcr.microsoft.com/azterraform make " $1 "
30+ $CONTAINER_RUNTIME run --pull always --user " $( id -u) :$( id -g) " --rm $AZURE_VOLUME -v /etc/passwd:/etc/passwd -v /etc/group:/etc/group -v " $( pwd) " :/src -w /src -e GITHUB_REPOSITORY -e ARM_SUBSCRIPTION_ID -e GITHUB_REPOSITORY_OWNER mcr.microsoft.com/azterraform make " $1 "
3131else
3232 make " $1 "
3333fi
Original file line number Diff line number Diff line change @@ -18,6 +18,6 @@ IF "%~1"=="" (
1818)
1919
2020REM Run the make target with CONTAINER_RUNTIME
21- %CONTAINER_RUNTIME% run --pull always --rm -v " %cd% " :/src -w /src --user " 1000:1000" -e GITHUB_REPOSITORY -e GITHUB_REPOSITORY_OWNER mcr.microsoft.com/azterraform make %1
21+ %CONTAINER_RUNTIME% run --pull always --rm -v " %cd% " :/src -w /src --user " 1000:1000" -r ARM_SUBSCRIPTION_ID - e GITHUB_REPOSITORY -e GITHUB_REPOSITORY_OWNER mcr.microsoft.com/azterraform make %1
2222
2323ENDLOCAL
You can’t perform that action at this time.
0 commit comments