Public Access
1
0
Files
11ty-site/.vscode/tasks.json

67 lines
1.5 KiB
JSON

{
"version": "2.0.0",
"tasks": [
{
"label": "docker-compose-up",
"type": "shell",
"command": "docker compose up --build",
"isBackground": true,
"problemMatcher": [
{
"pattern": [
{
"regexp": ".",
"file": 1,
"location": 2,
"message": 3
}
],
"background": {
"activeOnStart": true,
"beginsPattern": "Attaching to",
"endsPattern": "Debugger listening on"
}
}
]
},
{
"label": "docker-compose-down",
"type": "shell",
"command": "docker compose down --volumes"
},
{
"label": "Docker: Build and Push Production Image",
"type": "shell",
"command": "docker",
"args": [
"buildx",
"build",
"--platform",
"linux/amd64,linux/arm64",
"--target",
"production",
"-t",
"git.twk95.net/twk95/11ty-site:latest",
"-t",
"git.twk95.net/twk95/11ty-site:${input:version}",
".",
"--push"
],
"problemMatcher": [],
"group": {
"kind": "build",
"isDefault": true
},
"detail": "Builds and pushes a multi-platform production image to your container registry."
}
],
"inputs": [
{
"id": "version",
"type": "promptString",
"description": "Enter the version tag for the image (e.g., 1.0.0)",
"default": "1.0.0"
}
]
}