mirror of
https://github.com/hoverkraft-tech/compose-action.git
synced 2026-01-11 15:13:06 +08:00
Add option to up one service
This commit is contained in:
parent
fc745b789a
commit
e02ec27fe7
8
main.js
8
main.js
@ -10,8 +10,12 @@ try {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
compose.upAll({ config: composeFile, log: true })
|
const upOne = core.getInput('up-one', {required: false});
|
||||||
.then(
|
const options = { config: composeFile, log: true }
|
||||||
|
|
||||||
|
const promise = upOne ? compose.upOne(upOne, options) : compose.upAll(options);
|
||||||
|
|
||||||
|
promise.then(
|
||||||
() => { console.log('compose started')},
|
() => { console.log('compose started')},
|
||||||
err => { core.setFailed(`compose up failed ${err}`)}
|
err => { core.setFailed(`compose up failed ${err}`)}
|
||||||
);
|
);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user