Skip to content

Commit

Permalink
merging latest changes from v0 into master
Browse files Browse the repository at this point in the history
  • Loading branch information
Anukriti Gupta authored and BALAGA-GAYATRI committed Aug 30, 2021
1 parent ec7e08c commit 1a284fd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -80,7 +80,7 @@ Learn more about configuring permissions for Azure Image builder Service using [
/subscriptions/<subscriptionID>/resourceGroups/<sigResourceGroup>/providers/Microsoft.Compute/galleries/<sigName>/images/<imageDefName>/versions/<versionNumber>
```

* `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:

Expand Down
2 changes: 1 addition & 1 deletion lib/TaskParameters.js
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion src/TaskParameters.ts
Expand Up @@ -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;
}
Expand Down

0 comments on commit 1a284fd

Please sign in to comment.