Skip to content

Action to execute jFrog CLI commands for Artifactory

License

Notifications You must be signed in to change notification settings

pp185214/action-jfrog-cli

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
  • working directory - Optional Speccify a directory to run the CLI from

Example

on: push
name: Main Workflow
jobs:
  artifactoryUpload:
    name: Upload Trigger
    runs-on: ubuntu-latest
    steps:
    - uses: actions/[email protected]
    - 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.

About

Action to execute jFrog CLI commands for Artifactory

Resources

License

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 54.1%
  • Dockerfile 36.0%
  • JavaScript 9.9%