Skip to content

Commit

Permalink
feat: Add JFrog Artifactory upload action
Browse files Browse the repository at this point in the history
This commit adds a new action, "[Ledger Security] Upload to JFrog Artifactory", which is a wrapper for the JFrog Artifactory upload functionality. It allows users to specify the path to the file to upload and the name of the Artifactory repository to upload to. The action uses the jfrog/setup-jfrog-cli@v4 action to set up the JFrog CLI and then runs the "jfrog rt u" command to perform the upload.
  • Loading branch information
AEnguerrand committed Jul 9, 2024
1 parent bc7e71f commit d32a569
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions actions/jfrog-upload/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: "[Ledger Security] Upload to JFrog Artifactory"
description: "Ledger Security Action wrapper to login to JFrog"

inputs:
path:
description: "path to the file to upload"
required: true
default: "./"
artifactory_repository:
description: "name of artifactory_repository to upload to"
required: true
default: "./"

runs:
using: "composite"
steps:
- uses: jfrog/setup-jfrog-cli@v4
id: setup-jfrog-cli
env:
JF_URL: "https://artifactory.ledgerlabs.net"
with:
oidc-provider-name: github
oidc-audience: artifactory
- run: |
jfrog rt u ${{ inputs.path }} ${{ inputs.artifactory_repository}}
shell: bash

0 comments on commit d32a569

Please sign in to comment.