diff --git a/README.md b/README.md index 7d90f4fe..0f819edd 100644 --- a/README.md +++ b/README.md @@ -80,7 +80,7 @@ Learn more about configuring permissions for Azure Image builder Service using [ /subscriptions//resourceGroups//providers/Microsoft.Compute/galleries//images//versions/ ``` -* `customizer-source`: Optional. This takes the path to a directory in the runner. This is the directory where you can keep all the artifacts that need to be added to the base image for customization. By default, the value is _${{ GITHUB.WORKSPACE }}/workflow-artifacts_. +* `customizer-source`: Optional. This takes the path to a directory in the runner. This is the directory where you can keep all the artifacts that need to be added to the base image for customization. By default, the value is _${{ GITHUB.WORKSPACE }}/workflow-artifacts. * `customizer-script `: Optional. This takes multi inline powershell or shell commands and use variables to point to directories inside the downloaded location. * `customizer-destination` : Optional. This is the directory in the customized image where artifacts are copied to. The default path of customizer-destination would depend on the OS defined in 'source-os-type' field. For windows it is C:\ and for linux it is /tmp/. Note that for many Linux OS's, on a reboot, the /tmp directory contents are deleted. So if you need these artifacts to persist you need to write customizer script to copy them to a persistent location. Here is a sample input for customizer-script: diff --git a/lib/TaskParameters.js b/lib/TaskParameters.js index 99992d38..7773f7a9 100644 --- a/lib/TaskParameters.js +++ b/lib/TaskParameters.js @@ -104,7 +104,7 @@ class TaskParameters { //customize inputs this.customizerSource = tl.getInput(constants.CustomizerSource).toString(); if (this.customizerSource == undefined || this.customizerSource == "" || this.customizerSource == null) { - var artifactsPath = path.join(`${process.env.GITHUB_WORKSPACE}`, "imageArtifacts"); + var artifactsPath = path.join(`${process.env.GITHUB_WORKSPACE}`, "workflow-artifacts"); if (fs.existsSync(artifactsPath)) { this.customizerSource = artifactsPath; } diff --git a/src/TaskParameters.ts b/src/TaskParameters.ts index 5aa0b926..17442c7a 100644 --- a/src/TaskParameters.ts +++ b/src/TaskParameters.ts @@ -95,7 +95,7 @@ export default class TaskParameters { //customize inputs this.customizerSource = tl.getInput(constants.CustomizerSource).toString(); if (this.customizerSource == undefined || this.customizerSource == "" || this.customizerSource == null) { - var artifactsPath = path.join(`${process.env.GITHUB_WORKSPACE}`, "imageArtifacts"); + var artifactsPath = path.join(`${process.env.GITHUB_WORKSPACE}`, "workflow-artifacts"); if (fs.existsSync(artifactsPath)) { this.customizerSource = artifactsPath; }