Skip to content

Commit c73989c

Browse files
committed
added apt-get update to the command list
1 parent 2dc73b5 commit c73989c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

index.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,14 @@ var AWS_ACCESS_KEY_ID = core.getInput('aws-access-key-id')
1010
var AWS_SECRET_ACCESS_KEY = core.getInput('aws-secret-access-key')
1111

1212

13+
// Updates Ubuntu
14+
async function updateUbuntu() {
15+
await exeq(
16+
'echo Updating ubuntu...',
17+
'sudo apt-get update -y'
18+
)
19+
}
20+
1321
// Reinstalls Docker on Ubuntu
1422
async function installDocker() {
1523
await exeq(
@@ -41,6 +49,7 @@ async function runServerlessDeploy() {
4149

4250
// Runs all functions in sequence
4351
async function handler() {
52+
await updateUbuntu()
4453
await installDocker()
4554
await installServerlessAndPlugins()
4655
await runServerlessDeploy()

0 commit comments

Comments
 (0)