You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
{
|
|
|
|
// See https://go.microsoft.com/fwlink/?LinkId=733558
|
|
|
|
// 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 .",
|
|
|
|
"dependsOn": ["package"]
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
"label": "run",
|
|
|
|
"type": "shell",
|
|
|
|
"command": "docker run --rm -p 8888:8080 --name test sixdeploy:latest",
|
|
|
|
"dependsOn": ["dockerBuild"]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|