mirror of
https://github.com/docker/build-push-action.git
synced 2025-06-12 06:07:12 +02:00
add-host
input
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
4
dist/index.js
generated
vendored
4
dist/index.js
generated
vendored
@ -270,6 +270,7 @@ exports.tmpNameSync = tmpNameSync;
|
||||
function getInputs(defaultContext) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
return {
|
||||
addHost: yield getInputList('add-host'),
|
||||
allow: yield getInputList('allow'),
|
||||
buildArgs: yield getInputList('build-args', true),
|
||||
builder: core.getInput('builder'),
|
||||
@ -311,6 +312,9 @@ exports.getArgs = getArgs;
|
||||
function getBuildArgs(inputs, defaultContext, buildxVersion) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
let args = ['build'];
|
||||
if (inputs.addHost.length > 0) {
|
||||
args.push('--add-host', inputs.addHost.join(','));
|
||||
}
|
||||
if (inputs.allow.length > 0) {
|
||||
args.push('--allow', inputs.allow.join(','));
|
||||
}
|
||||
|
Reference in New Issue
Block a user