setup-redis/start-redis.js

9 lines
231 B
JavaScript
Raw Normal View History

2019-12-17 14:29:54 +00:00
const core = require('@actions/core')
const { exec } = require('@actions/exec')
2019-12-17 14:42:22 +00:00
async function run () {
2019-12-17 14:29:54 +00:00
await exec(`docker run --name redis --publish 6379:6379 --detach redis:${core.getInput('redis-version')}`)
}
run()