Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
package

GitHub Action

jFrog CLI for Artifactory

v1.1.0

jFrog CLI for Artifactory

package

jFrog CLI for Artifactory

Run jFrog CLI commands for Artifactory

Installation

Copy and paste the following snippet into your .yml file.

              

- name: jFrog CLI for Artifactory

uses: advancedcsg-open/[email protected]

Learn more about this action in advancedcsg-open/action-jfrog-cli

Choose a version

GitHub Action for jFrog CLI for Artifactory

Runs all jFrog CLI commands for artifactory. This will prefix any arguments passed with jfrog rt.

Usage

Inputs

  • url - Required URL to your Artifactor instance
  • credentials type- Required Should be one of the username, apikey or accesstoken
  • user- Conditionally Required If credentials type is set to username then this is required
  • password- Conditionally Required If credentials type is set to username then this is required
  • apikey- Conditionally Required If credentials type is set to apikey then this is required
  • access token- Conditionally Required If credentials type is set to accesstoken then this is required

Example

on: push
name: Main Workflow
jobs:
  artifactoryUpload:
    name: Upload Trigger
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@master
    - name: build
      run: ./buildmyartifact.sh
    - name: publish to artifactory
      uses: advancedcsg-open/action-jfrog-cli@master
      with:
        url: 'https://company.jfrog.io/'
        credentials type: 'apikey'
        apikey: ${{ secrets.RT_APIKEY }}
        args: u "dist/*" "/mu/repo/path/" --recursive=true --build-name=myawesomeapp

Recommended Secrets

You will need the following secrets based on how you authenticate to Artifactory

Username and Password

  • RT_USER
  • RT_PASSWORD

API Key

  • RT_APIKEY

Access Token

  • RT_ACCESSTOKEN

Optionally, you may want to store you URL as a secret too.