Configure Build Job

JFrog and GitHub Integration Guide

ft:sourceType
Paligo

This section describes how to configure Build Job in GitHub workflow.

Build Info is collected using JFrog CLI for the following packages:About Build Info

  • Supported through generic upload (jf rt upload)

    • Generic

    • NuGet

    • Dotnet

    • Pip

    • Yarn

  • Supported natively (through integration with the native package manager or by wrapping the command in a jf command)

    • Docker

    • Generic

    • Go

    • Maven

    • NPM

Example Usage

        steps:
            - name: Setup JFrog CLI
              uses: jfrog/setup-jfrog-cli@v4
              id: setup-cli
              env:
                JF_URL: https://${{ vars.JF_URL }}/   
                JF_PROJECT: ${{ vars.JF_PROJECT }}
              with:
                  oidc-provider-name: <oidc_provider_name> #replace with the name

            - name: Build and publish
              run: |
                jf pip install -r requirements.txt  --module=jfrog-python-example                
                python setup.py sdist bdist_wheel
                cd dist && echo "hashes=$(sha256sum * | base64 -w0)" >> $GITHUB_OUTPUT
                jf rt u dist/ codeninjas-proj-python-virtual/example-projects/ --module=jfrog-python-example

Related Information