Giter VIP home page Giter VIP logo

Comments (2)

fuch1m avatar fuch1m commented on August 25, 2024 1

@yahavi

Thank you for your fast response. This hint works great for me. I had to set JFROG_CLI_TEMP_DIR variable too.

Here is my adapted workflow.

name: build_app

on:
  workflow_dispatch:

jobs:
  build:
    runs-on: self-hosted
    steps:
      - name: Set JFrog CLI Home Directory
        run: |
          echo "JFROG_CLI_HOME_DIR=/tmp/$USER/jfrog/home" >> $GITHUB_ENV
          echo "JFROG_CLI_TEMP_DIR=/tmp/$USER/jfrog/temp" >> $GITHUB_ENV
      - name: Checkout
        uses: actions/checkout@v4
      - name: Setup Artifactory
        uses: jfrog/setup-jfrog-cli@v4
        env:
          JF_URL: ${{ vars.JF_URL }}
          JF_ACCESS_TOKEN: ${{ secrets.JF_ACCESS_TOKEN }}
      - name: Build App
        run: echo "app" > app
      - name: Upload App
        run: jfrog rt u app sw-generic/

from setup-jfrog-cli.

yahavi avatar yahavi commented on August 25, 2024

@fuch1m
Thank you for using this Action.
You can specify the JFrog home directory location by using the JFROG_CLI_HOME_DIR environment variable:

jobs:
  build:
    runs-on: self-hosted
    env:
      JFROG_CLI_HOME_DIR: <unique directory>
    steps:
      - name: Checkout
        uses: actions/checkout@v4
      - name: Setup Artifactory
        uses: jfrog/setup-jfrog-cli@v4
        env:
          JF_URL: ${{ vars.JF_URL }}
          JF_ACCESS_TOKEN: ${{ secrets.JF_ACCESS_TOKEN }}
...

Please let me know if that helped.

from setup-jfrog-cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.