Skip to content

JFrog cli action to help setup authentication

License

Notifications You must be signed in to change notification settings

chub-jancel/jfrogcli-action

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JFrog CLI for GitHub Actions v2

This action provides a wrapper around the JFrog CLI. It will execute whatever CLI commands your workflow defines, and can use any of the three authentication methods available to the CLI.

This action only supports JFrog Artifactory commands at this time.

Usage

This action requires several environment variables to operate: the URL for your Artifactory instance, the type of authentication you wish to use, and the credentials for your authentication method.

Required Variables

Variable Value
AUTH apikey, username, or accesstoken
URL The URL for your Artifactory instance

Authentication Variables

Auth Method Variable
API Key APIKEY
Access Token TOKEN
Login Credentials USER and PASS

All environment variables other than AUTH must be set as secrets.

Example Workflow

The following workflow simply pings your defined Artifactory instance to confirm it is operational. It uses the API key authentication method.

name: JFrog CLI

on: [push]

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - name: Ping Artifactory
        uses: katcosgrove/jfrog-actions@master
        with:
            cmd: 'ping'
        env:
            auth: ${{ secrets.AUTH }}
            apikey: ${{ secrets.APIKEY }}
            url: ${{ secrets.URL }}

About

JFrog cli action to help setup authentication

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 56.6%
  • Dockerfile 43.4%