A Drone plugin that publishes Docker image build information to JFrog Artifactory, including build details, VCS information, and SHA256 verification.
To learn how to utilize Drone plugins in Harness CI, please consult the provided documentation.
The plugin plugins/artifactory-publish-docker-buildinfo
is available for the following architectures:
OS | Tag |
---|---|
latest | linux-amd64,linux-arm64 |
linux/amd64 | linux-amd64 |
linux/arm64 | linux-arm64 |
- JFrog Artifactory instance
- Valid authentication credentials (Access Token, API Key, or Username/Password)
- Docker image published to Artifactory registry
Parameter | Choices/Defaults | Comments |
---|---|---|
url string |
Required | JFrog Artifactory URL |
docker_image string |
Required | Full path to Docker image in Artifactory |
build_name string |
Required | Name of the build |
build_number string |
Required | Build number (usually pipeline sequence ID) |
access_token string |
Either Access_token or Username Password or API key is required | JFrog access token for authentication |
username string |
Either Access_token or Username Password or API key is required | JFrog username (alternative to access token) |
password string |
Either Access_token or Username Password or API key is required | JFrog password (alternative to access token) |
api_key string |
Either Access_token or Username Password or API key is required | JFrog API key (alternative to access token) |
build_url string |
Optional | URL to the build in Harness CI |
git_path string |
Optional | Path to Git repository (defaults to workspace) |
Here's how to use the plugin in your Harness CI pipeline
- using access token:
- step:
type: Plugin
name: Publish Build Info
identifier: publish_build_info
spec:
connectorRef: docker_registry
image: plugins/artifactory-publish-docker-buildinfo:1.1.0
settings:
url: https://artifactory.example.com/artifactory
access_token: <+secrets.getValue("artifactory_token")>
build_name: <+pipeline.name>
build_url: <+pipeline.executionUrl>
docker_image: artifactory.example.com/repo/image:tag
build_number: <+pipeline.sequenceId>
- using username password:
- step:
type: Plugin
name: Publish Build Info
identifier: publish_build_info
spec:
connectorRef: docker_registry
image: plugins/artifactory-publish-docker-buildinfo:1.1.0
settings:
url: https://artifactory.example.com/artifactory
username: <+secrets.getValue("artifactory_username")>
password: <+secrets.getValue("artifactory_password")>
build_name: <+pipeline.name>
build_url: <+pipeline.executionUrl>
docker_image: artifactory.example.com/repo/image:tag
build_number: <+pipeline.sequenceId>
- using API key:
- step:
type: Plugin
name: Publish Build Info
identifier: publish_build_info
spec:
connectorRef: docker_registry
image: plugins/artifactory-publish-docker-buildinfo:1.1.0
settings:
url: https://artifactory.example.com/artifactory
api_key: <+secrets.getValue("artifactory_api_key")>
build_name: <+pipeline.name>
build_url: <+pipeline.executionUrl>
docker_image: artifactory.example.com/repo/image:tag
build_number: <+pipeline.sequenceId>