docker-getgrav/.vscode/tasks.json

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"
},
]
}