mirror of
https://github.com/hoverkraft-tech/compose-action.git
synced 2026-01-10 22:53: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
|
||||
}
|
||||
|
||||
compose.upAll({ config: composeFile, log: true })
|
||||
.then(
|
||||
const upOne = core.getInput('up-one', {required: false});
|
||||
const options = { config: composeFile, log: true }
|
||||
|
||||
const promise = upOne ? compose.upOne(upOne, options) : compose.upAll(options);
|
||||
|
||||
promise.then(
|
||||
() => { console.log('compose started')},
|
||||
err => { core.setFailed(`compose up failed ${err}`)}
|
||||
);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user