+ Added run task with task dependencies

main
Herobane 1 year ago
parent 81ad93f364
commit 0df1b2dc00

21
.vscode/tasks.json vendored

@ -3,23 +3,36 @@
// for the documentation about the tasks.json format // for the documentation about the tasks.json format
"version": "2.0.0", "version": "2.0.0",
"tasks": [ "tasks": [
{
"label": "test",
"type": "shell",
"command": "mvn -B test",
"group": "test"
},
{ {
"label": "compile", "label": "compile",
"type": "shell", "type": "shell",
"command": "mvn -B compile", "command": "mvn -B compile",
"group": "build" "group": "build"
}, },
{
"label": "package",
"type": "shell",
"command": "mvn clean package",
"dependsOn": ["compile"]
},
{ {
"label": "dockerBuild", "label": "dockerBuild",
"type": "shell", "type": "shell",
"command": "docker build -t sixdeploy:latest .", "command": "docker build -t sixdeploy:latest .",
"group": "build" "dependsOn": ["package"]
}, },
{ {
"label": "test", "label": "run",
"type": "shell", "type": "shell",
"command": "mvn -B test", "command": "docker run --rm -p 8888:8080 --name test sixdeploy:latest",
"group": "test" "dependsOn": ["dockerBuild"]
} }
] ]
} }
Loading…
Cancel
Save