A GitHub action for deploying to a JFrog Artifactory server.
This action can be used to deploy artifacts to a JFrog artifactory server. It makes use of the "builds" and "artifact properties" features of Artifactory to link deployed artifacts to their builds.
-
uri: URI of the Artifactory server -
username: Username for authentication with Artifactory -
password: Password for authentication with Artifactory -
build-name: Name of the build -
repository: Artifactory repository to which the artifacts should be deployed -
folder: Folder containing the artifacts to deploy
-
artifact-properties: Properties to apply to the deployed artifacts. Each line should be of the form<includes>:<excludes>:<properties>.includesandexcludesare comma-separated Ant patterns.propertiesis a comma-separated list ofkey=valuepairs -
build-uri: URI of the build that produced that artifacts that are to be deployed. Defaults to the URI of the current workflow run -
project: Artifactory project in which the build info should be stored -
threads: Number of threads to use when deploying artifacts. Defaults to 1 -
signing-key: A PGP/GPG signing key that will be used to sign artifacts before they are deployed -
signing-passphrase: Passphrase of the signing key -
signing-key-id: ID of the signing key that will be used. When omitted, the first key that is a signing key will be used -
vcs-revision: the last commit hash. When omitted, the value of${{ github.sha }}is used
steps:
- name: Deploy
uses: spring-io/artifactory-deploy-action@main
with:
uri: 'https://repo.example.com'
username: ${{ secrets.ARTIFACTORY_USERNAME }}
password: ${{ secrets.ARTIFACTORY_PASSWORD }}
build-name: 'example-build'
repository: 'test-libs-snapshot-local'
folder: 'deployment-repository'The action uses the ACTION_STEPS_DEBUG environment variable to enable additional debug logging.
This can be configured by passing through the value of the ACTION_STEPS_DEBUG secret that GitHub Actions sets when re-running with debug logging enabled:
steps:
- name: Deploy
uses: spring-io/artifactory-deploy-action@main
env:
ACTION_STEPS_DEBUG: ${{ secrets.ACTION_STEPS_DEBUG }}Artifactory Deploy Action is Open Source software released under the Apache 2.0 license.