This action provides a wrapper around the JFrog CLI. It will execute whatever CLI commands your workflow defines, and can use any of the three authentication methods available to the CLI.
This action only supports JFrog Artifactory commands at this time.
This action requires several environment variables to operate: the URL for your Artifactory instance, the type of authentication you wish to use, and the credentials for your authentication method.
Variable | Value |
---|---|
AUTH | apikey, username, or accesstoken |
URL | The URL for your Artifactory instance |
Auth Method | Variable |
---|---|
API Key | APIKEY |
Access Token | TOKEN |
Login Credentials | USER and PASS |
All environment variables other than AUTH must be set as secrets.
The following workflow simply pings your defined Artifactory instance to confirm it is operational. It uses the API key authentication method.
name: JFrog CLI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Ping Artifactory
uses: katcosgrove/jfrog-actions@master
with:
cmd: 'ping'
env:
auth: ${{ secrets.AUTH }}
apikey: ${{ secrets.APIKEY }}
url: ${{ secrets.URL }}