GitHub Action
jFrog CLI for Artifactory
v1.2.0
Latest version
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
,apikey
oraccesstoken
user
- Conditionally Required Ifcredentials type
is set tousername
then this is requiredpassword
- Conditionally Required Ifcredentials type
is set tousername
then this is requiredapikey
- Conditionally Required Ifcredentials type
is set toapikey
then this is requiredaccess token
- Conditionally Required Ifcredentials type
is set toaccesstoken
then 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/checkout@v1.2.0
- 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
You will need the following secrets based on how you authenticate to Artifactory
RT_USER
RT_PASSWORD
RT_APIKEY
RT_ACCESSTOKEN
Optionally, you may want to store you URL as a secret too.