Skip to content

Commit

Permalink
mount azure config dir
Browse files Browse the repository at this point in the history
  • Loading branch information
MoChilia committed Jan 15, 2025
1 parent ce5a2f6 commit b313305
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ export async function main() {
inlineScript = ` set -e >&2; echo '${START_SCRIPT_EXECUTION_MARKER}' >&2; ${inlineScript}`;
scriptFileName = await createScriptFile(inlineScript);

const azureConfigDir = process.env.AZURE_CONFIG_DIR || path.join(process.env.HOME, '.azure');
process.env.AZURE_CONFIG_DIR = '/root/.azure';

/*
For the docker run command, we are doing the following
- Set the working directory for docker continer
Expand All @@ -61,7 +64,7 @@ export async function main() {
*/
let args: string[] = ["run", "--workdir", `${process.env.GITHUB_WORKSPACE}`,
"-v", `${process.env.GITHUB_WORKSPACE}:${process.env.GITHUB_WORKSPACE}`,
"-v", `${process.env.HOME}/.azure:/root/.azure`,
"-v", `${azureConfigDir}:${process.env.AZURE_CONFIG_DIR}`,
"-v", `${TEMP_DIRECTORY}:${TEMP_DIRECTORY}`
];
for (let key in process.env) {
Expand Down

0 comments on commit b313305

Please sign in to comment.