Runs all jFrog CLI commands for artifactory. This will prefix any arguments passed with jfrog rt.
url- Required URL to your Artifactor instancecredentials type- Required Should be one of theusername,apikeyoraccesstokenuser- Conditionally Required Ifcredentials typeis set tousernamethen this is requiredpassword- Conditionally Required Ifcredentials typeis set tousernamethen this is requiredapikey- Conditionally Required Ifcredentials typeis set toapikeythen this is requiredaccess token- Conditionally Required Ifcredentials typeis set toaccesstokenthen this is requiredworking directory- Optional Speccify a directory to run the CLI from
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=myawesomeappYou will need the following secrets based on how you authenticate to Artifactory
RT_USERRT_PASSWORD
RT_APIKEY
RT_ACCESSTOKEN
Optionally, you may want to store you URL as a secret too.