You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
jFrog CLI for Artifactory
v1.0.1
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 required
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
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.