39 lines
872 B
JSON
39 lines
872 B
JSON
{
|
|
"version": "2.0.0",
|
|
"tasks": [
|
|
{
|
|
"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"
|
|
}
|
|
]
|
|
}
|