docker-build

JFrog Pipelines Documentation

ft:sourceType
Paligo

This Pipelines Task is used to perform Docker builds.

Prerequisites

  • This task requires jfrog-cli installed

Usage

Basic:

- task: jfrog/docker_build_publish@v0.0.1
  id: docker_build_publish
  input:
    resourceName: "go_app_gitrepo"
    dockerImage: "<JPD_URL>/<ARTIFACTORY_REPOSITORY>/<DOCKER_IMAGE>:<DOCKER_TAG>"
    dockerFileLocation: ""
    dockerFileName: ""
    optionalParams: ""

Input Variables

Name

Description

dockerFileLocation

Optional. Default is set to current directory, which is the root of source

dockerFileName

Optional. Default is set to Dockerfile

dockerImage

Input has to be provided as DockerImage:DockerImageTag

optionalParams

Optional

resourceName

The resource used for Docker build and publish

additionalTags

Additional tags to be used

Output Variables

None

Exported Environment Variables

None

How does it work?

This task only performs only Docker build with received image name and tags. Use docker-push task to push the Docker image.

License

This project is licensed under Apache 2.0 license.

Related Tasks

docker-push