From 0df1b2dc00f827efb9e59e4006f2e3ecce85c24b Mon Sep 17 00:00:00 2001 From: Herobane Date: Tue, 1 Aug 2023 01:19:57 +0200 Subject: [PATCH] + Added run task with task dependencies --- .vscode/tasks.json | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 73e2f80..93fd7b9 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -3,23 +3,36 @@ // for the documentation about the tasks.json format "version": "2.0.0", "tasks": [ + { + "label": "test", + "type": "shell", + "command": "mvn -B test", + "group": "test" + }, { "label": "compile", "type": "shell", "command": "mvn -B compile", "group": "build" }, + { + "label": "package", + "type": "shell", + "command": "mvn clean package", + "dependsOn": ["compile"] + }, { "label": "dockerBuild", "type": "shell", "command": "docker build -t sixdeploy:latest .", - "group": "build" + "dependsOn": ["package"] }, + { - "label": "test", + "label": "run", "type": "shell", - "command": "mvn -B test", - "group": "test" + "command": "docker run --rm -p 8888:8080 --name test sixdeploy:latest", + "dependsOn": ["dockerBuild"] } ] } \ No newline at end of file