docker-getgrav/.vscode/tasks.json
Magnus Walbeck 4cdf1972d5
All checks were successful
continuous-integration/drone/push Build is passing
Reduce vscode tasks by using inputs
2021-02-03 15:55:05 +01:00

42 lines
1.1 KiB
JSON

{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "docker-build",
"type": "docker-build",
"group": "build",
"dockerBuild": {
"tag": "dockergetgrav:${input:gravVersion}",
"dockerfile": "${workspaceFolder}/${input:gravVersion}/Dockerfile",
"context": "${workspaceFolder}",
"pull": true
}
},
{
"label": "docker-build prod",
"type": "docker-build",
"group": "build",
"dockerBuild": {
"tag": "dockergetgrav:${input:gravVersion}-prod",
"dockerfile": "${workspaceFolder}/${input:gravVersion}/Dockerfile.prod",
"context": "${workspaceFolder}",
"pull": true
}
}
],
"inputs": [
{
"type": "pickString",
"id": "gravVersion",
"description": "Which grav version do you want to build?",
"options": [
"1.7",
"1.6"
],
"default": "1.7"
},
]
}