Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding buildctl task #11549

Merged
merged 15 commits into from
Oct 21, 2019
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"loc.friendlyName": "Container Build",
"loc.helpMarkDown": "[Learn more about this task](https://go.microsoft.com/fwlink/?linkid=851275) or [see the Kubernetes documentation](https://kubernetes.io/docs/home/)",
prebansa marked this conversation as resolved.
Show resolved Hide resolved
"loc.description": "Build Task",
"loc.instanceNameFormat": "Container Build Task",
"loc.group.displayName.containerRepository": "Container Repository",
prebansa marked this conversation as resolved.
Show resolved Hide resolved
"loc.group.displayName.commands": "Commands",
"loc.input.label.dockerRegistryServiceConnection": "Docker registry service connection",
"loc.input.help.dockerRegistryServiceConnection": "Select a Docker registry service connection. Required for commands that need to authenticate with a registry.",
prebansa marked this conversation as resolved.
Show resolved Hide resolved
"loc.input.label.repository": "Container repository",
"loc.input.help.repository": "Name of the repository.",
prebansa marked this conversation as resolved.
Show resolved Hide resolved
"loc.input.label.Dockerfile": "Dockerfile",
"loc.input.help.Dockerfile": "Path to the Dockerfile.",
prebansa marked this conversation as resolved.
Show resolved Hide resolved
"loc.input.label.buildContext": "Build context",
"loc.input.help.buildContext": "Path to the Build context.",
vithati marked this conversation as resolved.
Show resolved Hide resolved
"loc.input.label.tags": "Tags",
"loc.input.help.tags": "A list of tags in separate lines. These tags are used in build, push and buildAndPush commands. Ex:<br><br>beta1.1<br>latest",
vithati marked this conversation as resolved.
Show resolved Hide resolved
"loc.input.label.arguments": "Arguments",
"loc.input.help.arguments": "Docker command options. Ex:<br> For build command,<br>--build-arg HTTP_PROXY=http://10.20.30.2:1234 --quiet",
vithati marked this conversation as resolved.
Show resolved Hide resolved
"loc.input.label.addPipelineData": "Add Pipeline metadata to image(s)",
"loc.input.help.addPipelineData": "By default pipeline data like source branch name, build id are added which helps with traceability. For example you can inspect an image to find out which pipeline built the image. You can opt out of this default behavior by using this input.",
"loc.messages.NotAValidSemverVersion": "Version not specified in correct format. E.g: 1.8.2, v1.8.2, 2.8.2, v2.8.2.",
"loc.messages.VerifyBuildctlInstallation": "Verifying Buildctl installation...",
vithati marked this conversation as resolved.
Show resolved Hide resolved
"loc.messages.BuildctlLatestNotKnown": "Cannot get the latest Buildctl info from %s. Error %s. Using default Buildctl version %s.",
"loc.messages.BuildctlDownloadFailed": "Failed to download Buildctl from location %s. Error %s",
"loc.messages.BuildctlNotFoundInFolder": "Buildctl executable not found in path %s"
}
1,098 changes: 1,098 additions & 0 deletions Tasks/ContainerBuildV0/ThirdPartyNotices.txt

Large diffs are not rendered by default.

Binary file added Tasks/ContainerBuildV0/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions Tasks/ContainerBuildV0/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions Tasks/ContainerBuildV0/make.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"common": [
{
"module": "../Common/azure-arm-rest-v2",
"type": "node",
"dest": "./",
"compile": true
}
],
"rm": [
{
"items": [
"node_modules/azure-arm-rest/node_modules/vsts-task-lib",
"node_modules/buildctl-common/node_modules/azure-pipelines-task-lib"
],
"options": "-Rf"
}
]
}
270 changes: 270 additions & 0 deletions Tasks/ContainerBuildV0/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions Tasks/ContainerBuildV0/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"dependencies": {
"azure-arm-rest-v2": "file:../../_build/Tasks/Common/azure-arm-rest-v2-2.0.0.tgz",
"azure-pipelines-task-lib": "2.8.0",
"azure-pipelines-tool-lib": "0.11.0"
}
}
Loading