-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into ASSETS-23937
- Loading branch information
Showing
11 changed files
with
2,047 additions
and
1,554 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,7 @@ jobs: | |
if: "!contains(github.event.head_commit.message, '[ci skip]')" | ||
strategy: | ||
matrix: | ||
node-version: [12.16, 12.19, 14.16.1, 14.17] | ||
node-version: [14.16.1, 14.17] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
@@ -33,6 +33,11 @@ jobs: | |
run: npm install -g @adobe/[email protected] | ||
- name: Log aio details | ||
run: aio info | ||
- name: Docker login | ||
run: docker login -u $REGISTRY_ID -p $REGISTRY_SECRET adobeassetcompute.azurecr.io | ||
env: | ||
REGISTRY_ID: ${{ secrets.AZURE_CONTAINER_REGISTRY_ID }} | ||
REGISTRY_SECRET: ${{ secrets.AZURE_CONTAINER_REGISTRY_SECRET }} | ||
- name: Install dependencies (all) | ||
run: npm install | ||
- name: Run unit tests | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/* | ||
* Copyright 2023 Adobe. All rights reserved. | ||
* This file is licensed to you under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. You may obtain a copy | ||
* of the License at http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software distributed under | ||
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS | ||
* OF ANY KIND, either express or implied. See the License for the specific language | ||
* governing permissions and limitations under the License. | ||
*/ | ||
|
||
'use strict'; | ||
|
||
const { Transformer } = require("@adobe/asset-compute-pipeline"); | ||
const ShellScriptWorker = require('./shell/shellscript'); | ||
|
||
class ShellscriptCallbackTransformer extends Transformer { | ||
/** | ||
* Construct a transformer for shellscript workers | ||
* @param {*} callback | ||
* @param {*} manifest worker manifest (only one, not a list) | ||
*/ | ||
constructor(callback, manifest, params) { | ||
super(`shellscript-workerCallback-${manifest.name}`, manifest); | ||
this._params = params; | ||
this._callback = callback; | ||
} | ||
|
||
async compute(input, output) { | ||
const executionOptions = { | ||
script: this._callback | ||
}; | ||
const shellscriptWorker = new ShellScriptWorker(this._params, executionOptions); | ||
return shellscriptWorker.processWithScript(input, output, executionOptions); | ||
} | ||
} | ||
|
||
module.exports = ShellscriptCallbackTransformer; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.